Skip to content

Commit

Permalink
One more place to use the PersistentUnpickler. Fixes AnalyzeDotPyTest…
Browse files Browse the repository at this point in the history
… under PyPy.
  • Loading branch information
jamadden committed Apr 9, 2015
1 parent cbee290 commit 8215fdc
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions src/ZODB/scripts/analyze.py
Expand Up @@ -6,7 +6,7 @@
import sys

from ZODB.FileStorage import FileStorage
from ZODB._compat import Unpickler, BytesIO
from ZODB._compat import PersistentUnpickler, BytesIO



Expand All @@ -22,8 +22,7 @@ def fake_find_class(module, name):


def FakeUnpickler(f):
unpickler = Unpickler(f)
unpickler.find_global = fake_find_class
unpickler = PersistentUnpickler(fake_find_class, None, f)
return unpickler


Expand Down

0 comments on commit 8215fdc

Please sign in to comment.