Show More
@@ -88,6 +88,11 b' username = platform.username' | |||||
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 |
General Comments 0
You need to be logged in to leave comments.
Login now