[Python-checkins] CVS: python/dist/src/Lib doctest.py,1.1,1.2 dospath.py,1.21,1.22 dumbdbm.py,1.7,1.8 filecmp.py,1.9,1.10 fileinput.py,1.6,1.7 fnmatch.py,1.9,1.10 fpformat.py,1.8,1.9 ftplib.py,1.48,1.49 getopt.py,1.14,1.15 getpass.py,1.10,1.11 glob.py,1.8,1.9

Skip Montanaro montanaro@users.sourceforge.net
Sat, 20 Jan 2001 15:34:14 -0800


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

Modified Files:
	doctest.py dospath.py dumbdbm.py filecmp.py fileinput.py 
	fnmatch.py fpformat.py ftplib.py getopt.py getpass.py glob.py 
Log Message:
more __all__ updates


Index: doctest.py
===================================================================
RCS file: /cvsroot/python/python/dist/src/Lib/doctest.py,v
retrieving revision 1.1
retrieving revision 1.2
diff -C2 -r1.1 -r1.2
*** doctest.py	2001/01/16 07:10:57	1.1
--- doctest.py	2001/01/20 23:34:12	1.2
***************
*** 372,375 ****
--- 372,377 ----
  del re
  
+ __all__ = []
+ 
  # Extract interactive examples from a string.  Return a list of triples,
  # (source, outcome, lineno).  "source" is the source code, and ends

Index: dospath.py
===================================================================
RCS file: /cvsroot/python/python/dist/src/Lib/dospath.py,v
retrieving revision 1.21
retrieving revision 1.22
diff -C2 -r1.21 -r1.22
*** dospath.py	2001/01/14 23:36:05	1.21
--- dospath.py	2001/01/20 23:34:12	1.22
***************
*** 4,7 ****
--- 4,11 ----
  import stat
  
+ __all__ = ["normcase","isabs","join","splitdrive","split","splitext",
+            "basename","dirname","commonprefix","getsize","getmtime",
+            "getatime","islink","exists","isdir","isfile","ismount",
+            "walk","expanduser","expandvars","normpath","abspath"]
  
  def normcase(s):

Index: dumbdbm.py
===================================================================
RCS file: /cvsroot/python/python/dist/src/Lib/dumbdbm.py,v
retrieving revision 1.7
retrieving revision 1.8
diff -C2 -r1.7 -r1.8
*** dumbdbm.py	2001/01/14 23:36:05	1.7
--- dumbdbm.py	2001/01/20 23:34:12	1.8
***************
*** 25,28 ****
--- 25,30 ----
  import __builtin__
  
+ __all__ = ["open"]
+ 
  _open = __builtin__.open
  

Index: filecmp.py
===================================================================
RCS file: /cvsroot/python/python/dist/src/Lib/filecmp.py,v
retrieving revision 1.9
retrieving revision 1.10
diff -C2 -r1.9 -r1.10
*** filecmp.py	2001/01/14 23:36:05	1.9
--- filecmp.py	2001/01/20 23:34:12	1.10
***************
*** 14,17 ****
--- 14,19 ----
  import statcache
  
+ __all__ = ["cmp","dircmp","cmpfiles"]
+ 
  _cache = {}
  BUFSIZE=8*1024

Index: fileinput.py
===================================================================
RCS file: /cvsroot/python/python/dist/src/Lib/fileinput.py,v
retrieving revision 1.6
retrieving revision 1.7
diff -C2 -r1.6 -r1.7
*** fileinput.py	2001/01/05 14:44:39	1.6
--- fileinput.py	2001/01/20 23:34:12	1.7
***************
*** 82,85 ****
--- 82,88 ----
  import sys, os, stat
  
+ __all__ = ["input","close","nextfile","filename","lineno","filelineno",
+            "isfirstline","isstdin","FileInput"]
+ 
  _state = None
  

Index: fnmatch.py
===================================================================
RCS file: /cvsroot/python/python/dist/src/Lib/fnmatch.py,v
retrieving revision 1.9
retrieving revision 1.10
diff -C2 -r1.9 -r1.10
*** fnmatch.py	2001/01/14 23:36:05	1.9
--- fnmatch.py	2001/01/20 23:34:12	1.10
***************
*** 13,16 ****
--- 13,18 ----
  import re
  
+ __all__ = ["fnmatch","fnmatchcase","translate"]
+ 
  _cache = {}
  

Index: fpformat.py
===================================================================
RCS file: /cvsroot/python/python/dist/src/Lib/fpformat.py,v
retrieving revision 1.8
retrieving revision 1.9
diff -C2 -r1.8 -r1.9
*** fpformat.py	2001/01/14 23:36:06	1.8
--- fpformat.py	2001/01/20 23:34:12	1.9
***************
*** 14,17 ****
--- 14,19 ----
  import re
  
+ __all__ = ["fix","sci","NotANumber"]
+ 
  # Compiled regular expression to "decode" a number
  decoder = re.compile(r'^([-+]?)0*(\d*)((?:\.\d*)?)(([eE][-+]?\d+)?)$')

Index: ftplib.py
===================================================================
RCS file: /cvsroot/python/python/dist/src/Lib/ftplib.py,v
retrieving revision 1.48
retrieving revision 1.49
diff -C2 -r1.48 -r1.49
*** ftplib.py	2001/01/15 16:32:49	1.48
--- ftplib.py	2001/01/20 23:34:12	1.49
***************
*** 46,49 ****
--- 46,50 ----
      import socket
  
+ __all__ = ["FTP","Netrc"]
  
  # Magic number from <socket.h>

Index: getopt.py
===================================================================
RCS file: /cvsroot/python/python/dist/src/Lib/getopt.py,v
retrieving revision 1.14
retrieving revision 1.15
diff -C2 -r1.14 -r1.15
*** getopt.py	2001/01/08 15:39:32	1.14
--- getopt.py	2001/01/20 23:34:12	1.15
***************
*** 18,21 ****
--- 18,23 ----
  # to class-based exceptions.
  
+ __all__ = ["GetoptError","error","getopt"]
+ 
  class GetoptError(Exception):
      opt = ''

Index: getpass.py
===================================================================
RCS file: /cvsroot/python/python/dist/src/Lib/getpass.py,v
retrieving revision 1.10
retrieving revision 1.11
diff -C2 -r1.10 -r1.11
*** getpass.py	2001/01/14 23:47:14	1.10
--- getpass.py	2001/01/20 23:34:12	1.11
***************
*** 14,17 ****
--- 14,19 ----
  import sys
  
+ __all__ = ["getpass","getuser"]
+ 
  def unix_getpass(prompt='Password: '):
      """Prompt for a password, with echo turned off.

Index: glob.py
===================================================================
RCS file: /cvsroot/python/python/dist/src/Lib/glob.py,v
retrieving revision 1.8
retrieving revision 1.9
diff -C2 -r1.8 -r1.9
*** glob.py	2001/01/14 23:47:14	1.8
--- glob.py	2001/01/20 23:34:12	1.9
***************
*** 5,8 ****
--- 5,9 ----
  import re
  
+ __all__ = ["glob"]
  
  def glob(pathname):