# HG changeset patch # User Sean Farley # Date 1377219280 18000 # Node ID 99c503cfcc9c6f1399b47d4a67bcdce6a1785ead # Parent 37989fbbab5cd169dc2a0320946cbfa70d5cdaa7 util: remove pre-1.9 mercurial code from pickle_atomic diff --git a/hgsubversion/util.py b/hgsubversion/util.py --- a/hgsubversion/util.py +++ b/hgsubversion/util.py @@ -150,12 +150,7 @@ def pickle_atomic(data, file_path): """ f = hgutil.atomictempfile(file_path, 'w+b', 0644) pickle.dump(data, f) - # Older versions of hg have .rename() instead of .close on - # atomictempfile. - if getattr(hgutil.atomictempfile, 'rename', False): - f.rename() - else: - f.close() + f.close() def parseurl(url, heads=[]): checkout = None