diff --git a/Lib/pickletools.py b/Lib/pickletools.py index d7c1a7de54f..5e05b641d46 100644 --- a/Lib/pickletools.py +++ b/Lib/pickletools.py @@ -10,6 +10,10 @@ dis(pickle, out=None, memo=None, indentlevel=4) Print a symbolic disassembly of a pickle. ''' +__all__ = ['dis', + 'genops', + ] + # Other ideas: # # - A pickle verifier: read a pickle and check it exhaustively for diff --git a/Lib/test/test___all__.py b/Lib/test/test___all__.py index 0794bd8263a..3bddcad96b8 100644 --- a/Lib/test/test___all__.py +++ b/Lib/test/test___all__.py @@ -114,6 +114,7 @@ class AllTest(unittest.TestCase): self.check_all("os2emxpath") self.check_all("pdb") self.check_all("pickle") + self.check_all("pickletools") self.check_all("pipes") self.check_all("popen2") self.check_all("poplib") diff --git a/Misc/NEWS b/Misc/NEWS index a472fea43bd..1970900da70 100644 --- a/Misc/NEWS +++ b/Misc/NEWS @@ -26,6 +26,8 @@ Library attempt is made to execute the remaining handlers. The last exception raised is re-raised. +- Patch 1061679: Added `__all__` to pickletools.py. + Build -----