(self, *factors)
| 883 | f.write(repr_dict) |
| 884 | |
| 885 | def cache_hash(self, *factors): |
| 886 | # is there a built-in non-crypto hash? |
| 887 | # sdbm |
| 888 | chash = 0 |
| 889 | for f in factors: |
| 890 | for char in str(f): |
| 891 | chash = ord(char) + (chash << 6) + (chash << 16) - chash |
| 892 | chash &= 0xFFFFFFFF |
| 893 | return chash |
| 894 | |
| 895 | @staticmethod |
| 896 | def me(cb): |
no outgoing calls
no test coverage detected