Skip to content

Commit

Permalink
Update pickling.py
Browse files Browse the repository at this point in the history
  • Loading branch information
daedalus authored Mar 3, 2023
1 parent c9ea122 commit c915dda
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions lib/pickling.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ def compress_pickle(filename, data):

# Load any compressed pickle file
def decompress_pickle(filename):
sys.stderr.write("Loading pickle %s..." % filename)
data = bz2.BZ2File(filename, 'rb')
data = cPickle.load(data)
return data
sys.stderr.write("Loading pickle %s..." % filename)
data = bz2.BZ2File(filename, 'rb')
data = cPickle.load(data)
return data

0 comments on commit c915dda

Please sign in to comment.