Skip to content
Browse files

Force a pickling protocol that will accept certain awkward classes.

  • Loading branch information...
jdm committed Mar 3, 2019
1 parent fe1663a commit 6186cb465d8320b1d945a26231943f9235419105
"tools/wptrunner/wptrunner/update/": [
"tools/wptrunner/wptrunner/update/": [
@@ -69,7 +69,7 @@ def push(self, init_values):
def save(self):
"""Write the state to disk"""
with open(self.filename, "w") as f:
pickle.dump(self, f)
pickle.dump(self, f, 2)

def is_empty(self):
return len(self._data) == 1 and self._data[0] == {}

0 comments on commit 6186cb4

Please sign in to comment.
You can’t perform that action at this time.