Commits

Ned Batchelder  committed b9512b6

Turns out we were spinning on Nones a lot in the Hasher.

  • Participants
  • Parent commits 1e62e8d

Comments (0)

Files changed (1)

File coverage/misc.py

         self.md5.update(to_bytes(str(type(v))))
         if isinstance(v, string_class):
             self.md5.update(to_bytes(v))
+        elif v is None:
+            pass
         elif isinstance(v, (int, float)):
-            self.update(str(v))
+            self.md5.update(to_bytes(str(v)))
         elif isinstance(v, (tuple, list)):
             for e in v:
                 self.update(e)