equal
deleted
inserted
replaced
86 |
86 |
87 # Python compatibility |
87 # Python compatibility |
88 |
88 |
89 _notset = object() |
89 _notset = object() |
90 |
90 |
|
91 # disable Python's problematic floating point timestamps (issue4836) |
|
92 # (Python hypocritically says you shouldn't change this behavior in |
|
93 # libraries, and sure enough Mercurial is not a library.) |
|
94 os.stat_float_times(False) |
|
95 |
91 def safehasattr(thing, attr): |
96 def safehasattr(thing, attr): |
92 return getattr(thing, attr, _notset) is not _notset |
97 return getattr(thing, attr, _notset) is not _notset |
93 |
98 |
94 from hashlib import md5, sha1 |
99 from hashlib import md5, sha1 |
95 |
100 |