(*factors)
| 625 | assert len(custom_vars) > 0 |
| 626 | |
| 627 | def sdbm_hash(*factors): |
| 628 | chash = 0 |
| 629 | for f in factors: |
| 630 | for char in str(f): |
| 631 | chash = ord(char) + (chash << 6) + (chash << 16) - chash |
| 632 | chash &= 0xFFFFFFFF |
| 633 | return chash |
| 634 | |
| 635 | vars_hash = sdbm_hash(custom_vars, os.path.getmtime(in_config)) |
| 636 | try: |
no outgoing calls
no test coverage detected