[Python-checkins] CVS: python/dist/src/Lib imghdr.py,1.10,1.11 imputil.py,1.16,1.17 keyword.py,1.8,1.9 linecache.py,1.6,1.7 locale.py,1.12,1.13 macpath.py,1.27,1.28 macurl2path.py,1.9,1.10 mailbox.py,1.27,1.28 mailcap.py,1.7,1.8 mhlib.py,1.22,1.23
Skip Montanaro
montanaro@users.sourceforge.net
Tue, 23 Jan 2001 22:27:29 -0800
Update of /cvsroot/python/python/dist/src/Lib
In directory usw-pr-cvs1:/tmp/cvs-serv10384/Lib
Modified Files:
imghdr.py imputil.py keyword.py linecache.py locale.py
macpath.py macurl2path.py mailbox.py mailcap.py mhlib.py
Log Message:
a few more modules get __all__
Index: imghdr.py
===================================================================
RCS file: /cvsroot/python/python/dist/src/Lib/imghdr.py,v
retrieving revision 1.10
retrieving revision 1.11
diff -C2 -r1.10 -r1.11
*** imghdr.py 2001/01/14 23:47:14 1.10
--- imghdr.py 2001/01/24 06:27:27 1.11
***************
*** 1,4 ****
--- 1,5 ----
"""Recognize image file formats based on their first few bytes."""
+ __all__ = ["what"]
#-------------------------#
Index: imputil.py
===================================================================
RCS file: /cvsroot/python/python/dist/src/Lib/imputil.py,v
retrieving revision 1.16
retrieving revision 1.17
diff -C2 -r1.16 -r1.17
*** imputil.py 2001/01/14 23:47:14 1.16
--- imputil.py 2001/01/24 06:27:27 1.17
***************
*** 15,18 ****
--- 15,20 ----
import marshal
+ __all__ = ["ImportManager","Importer","BuiltinImporter"]
+
_StringType = type('')
_ModuleType = type(sys) ### doesn't work in JPython...
Index: keyword.py
===================================================================
RCS file: /cvsroot/python/python/dist/src/Lib/keyword.py,v
retrieving revision 1.8
retrieving revision 1.9
diff -C2 -r1.8 -r1.9
*** keyword.py 2000/02/04 15:10:33 1.8
--- keyword.py 2001/01/24 06:27:27 1.9
***************
*** 11,14 ****
--- 11,16 ----
"""
+ __all__ = ["iskeyword"]
+
kwlist = [
#--start keywords--
Index: linecache.py
===================================================================
RCS file: /cvsroot/python/python/dist/src/Lib/linecache.py,v
retrieving revision 1.6
retrieving revision 1.7
diff -C2 -r1.6 -r1.7
*** linecache.py 2000/12/12 23:20:44 1.6
--- linecache.py 2001/01/24 06:27:27 1.7
***************
*** 10,13 ****
--- 10,15 ----
from stat import *
+ __all__ = ["getline","clearcache","checkcache"]
+
def getline(filename, lineno):
lines = getlines(filename)
Index: locale.py
===================================================================
RCS file: /cvsroot/python/python/dist/src/Lib/locale.py,v
retrieving revision 1.12
retrieving revision 1.13
diff -C2 -r1.12 -r1.13
*** locale.py 2001/01/21 18:52:33 1.12
--- locale.py 2001/01/24 06:27:27 1.13
***************
*** 19,22 ****
--- 19,27 ----
#
+ __all__ = ["setlocale","Error","localeconv","strcoll","strxfrm",
+ "format","str","atof","atoi","LC_CTYPE","LC_COLLATE",
+ "LC_TIME","LC_MONETARY","LC_NUMERIC","LC_MESSAGES",
+ "LC_ALL","CHAR_MAX"]
+
try:
Index: macpath.py
===================================================================
RCS file: /cvsroot/python/python/dist/src/Lib/macpath.py,v
retrieving revision 1.27
retrieving revision 1.28
diff -C2 -r1.27 -r1.28
*** macpath.py 2000/12/12 23:20:44 1.27
--- macpath.py 2001/01/24 06:27:27 1.28
***************
*** 4,7 ****
--- 4,11 ----
from stat import *
+ __all__ = ["normcase","isabs","join","splitdrive","split","splitext",
+ "basename","dirname","commonprefix","getsize","getmtime",
+ "getatime","islink","exists","isdir","isfile",
+ "walk","expanduser","expandvars","normpath","abspath"]
# Normalize the case of a pathname. Dummy in Posix, but <s>.lower() here.
Index: macurl2path.py
===================================================================
RCS file: /cvsroot/python/python/dist/src/Lib/macurl2path.py,v
retrieving revision 1.9
retrieving revision 1.10
diff -C2 -r1.9 -r1.10
*** macurl2path.py 2001/01/14 23:47:14 1.9
--- macurl2path.py 2001/01/24 06:27:27 1.10
***************
*** 7,10 ****
--- 7,12 ----
import os
+ __all__ = ["url2pathname","pathname2url"]
+
def url2pathname(pathname):
"Convert /-delimited pathname to mac pathname"
Index: mailbox.py
===================================================================
RCS file: /cvsroot/python/python/dist/src/Lib/mailbox.py,v
retrieving revision 1.27
retrieving revision 1.28
diff -C2 -r1.27 -r1.28
*** mailbox.py 2000/12/12 23:20:44 1.27
--- mailbox.py 2001/01/24 06:27:27 1.28
***************
*** 7,10 ****
--- 7,12 ----
import os
+ __all__ = ["UnixMailbox","MmdfMailbox","MHMailbox","Maildir","BabylMailbox"]
+
class _Mailbox:
def __init__(self, fp):
Index: mailcap.py
===================================================================
RCS file: /cvsroot/python/python/dist/src/Lib/mailcap.py,v
retrieving revision 1.7
retrieving revision 1.8
diff -C2 -r1.7 -r1.8
*** mailcap.py 2001/01/14 23:47:14 1.7
--- mailcap.py 2001/01/24 06:27:27 1.8
***************
*** 4,7 ****
--- 4,8 ----
import string
+ __all__ = ["getcaps","findmatch"]
# Part 1: top-level interface.
Index: mhlib.py
===================================================================
RCS file: /cvsroot/python/python/dist/src/Lib/mhlib.py,v
retrieving revision 1.22
retrieving revision 1.23
diff -C2 -r1.22 -r1.23
*** mhlib.py 2000/12/12 23:20:44 1.22
--- mhlib.py 2001/01/24 06:27:27 1.23
***************
*** 83,86 ****
--- 83,87 ----
from bisect import bisect
+ __all__ = ["MH","Error","Folder","Message"]
# Exported constants