mercurial/util.py
changeset 27015 341cb90ffd18
parent 26847 9f16787cbefd
child 27016 448cbdab5883
equal deleted inserted replaced
27014:4223fc58f952 27015:341cb90ffd18
    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