From 90cf212cefd270615a6d7ffa043e1cf3bd9ec9f2 Mon Sep 17 00:00:00 2001 From: Tim Peters Date: Sat, 6 Nov 2004 23:45:48 +0000 Subject: [PATCH] Essentially SF patch 1061679: add missing __all__ to pickletools.py. Harmless. --- Lib/pickletools.py | 4 ++++ Lib/test/test___all__.py | 1 + Misc/NEWS | 2 ++ 3 files changed, 7 insertions(+) diff --git a/Lib/pickletools.py b/Lib/pickletools.py index d7c1a7de54..5e05b641d4 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 0794bd8263..3bddcad96b 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 a472fea43b..1970900da7 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 ----- -- 2.40.0