Mercurial > hgsubversion
diff hgsubversion/util.py @ 1140:9ec3c2e89c94
util: banish pickle to compathacks
author | Sean Farley <sean.michael.farley@gmail.com> |
---|---|
date | Sat, 15 Feb 2014 01:58:07 -0600 |
parents | ad4cb902593e |
children | a4b54b19cd2e |
line wrap: on
line diff
--- a/hgsubversion/util.py +++ b/hgsubversion/util.py @@ -1,4 +1,4 @@ -import cPickle as pickle +import compathacks import errno import re import os @@ -192,8 +192,7 @@ def load(file_path): f.close() except ValueError: # Ok, JSON couldn't be loaded, so we'll try the old way of using pickle - f.seek(0) - data = pickle.load(f) + data = compathacks.pickle_load(f) # convert the file to json immediately f.close()