diff mercurial/posix.py @ 15791:a814f8fcc65a

Use explicit integer division Found by running the test suite with the -3 flag to show places where we have int / int division that can be replaced with int // int.
author Martin Geisler <mg@aragost.com>
date Sun, 08 Jan 2012 18:15:54 +0100
parents c51c9dc13a58
children 95e45abe7e8e
line wrap: on
line diff
--- a/mercurial/posix.py	Sun Jan 08 17:57:25 2012 +0100
+++ b/mercurial/posix.py	Sun Jan 08 18:15:54 2012 +0100
@@ -438,6 +438,8 @@
     def cacheable(self):
         return bool(self.stat.st_ino)
 
+    __hash__ = object.__hash__
+
     def __eq__(self, other):
         try:
             return self.stat == other.stat