[Python-checkins] CVS: python/dist/src/Lib pickle.py,1.45,1.46

Skip Montanaro montanaro@users.sourceforge.net
Sat, 17 Feb 2001 19:10:12 -0800


Update of /cvsroot/python/python/dist/src/Lib
In directory usw-pr-cvs1:/tmp/cvs-serv12690

Modified Files:
	pickle.py 
Log Message:
add module-level constants to __all__


Index: pickle.py
===================================================================
RCS file: /cvsroot/python/python/dist/src/Lib/pickle.py,v
retrieving revision 1.45
retrieving revision 1.46
diff -C2 -r1.45 -r1.46
*** pickle.py	2001/02/09 20:06:00	1.45
--- pickle.py	2001/02/18 03:10:09	1.46
***************
*** 31,34 ****
--- 31,35 ----
  import sys
  import struct
+ import re
  
  __all__ = ["PickleError", "PicklingError", "UnpicklingError", "Pickler",
***************
*** 95,98 ****
--- 96,101 ----
  SETITEMS        = 'u'
  BINFLOAT        = 'G'
+ 
+ __all__.extend([x for x in dir() if re.match("[A-Z][A-Z0-9_]+$",x)])
  
  class Pickler: