Skip to content

Commit

Permalink
Force a pickling protocol that will accept certain awkward classes.
Browse files Browse the repository at this point in the history
  • Loading branch information
jdm committed Mar 3, 2019
1 parent fe1663a commit 6186cb4
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion tests/wpt/metadata/MANIFEST.json
Expand Up @@ -683466,7 +683466,7 @@
"support"
],
"tools/wptrunner/wptrunner/update/state.py": [
"dc459da7e2e5a6b5dfd088b711e4fa9c7d693af9",
"3a97618effdbf13c22ac422a6f5e4bbae65643bd",
"support"
],
"tools/wptrunner/wptrunner/update/sync.py": [
Expand Down
Expand Up @@ -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] == {}
Expand Down

0 comments on commit 6186cb4

Please sign in to comment.