Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
C
cpython
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
cpython
Commits
09c1d1d3
Commit
09c1d1d3
authored
Feb 18, 2001
by
Skip Montanaro
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
removed __all__ from several modules
parent
2fa776bb
Changes
16
Hide whitespace changes
Inline
Side-by-side
Showing
16 changed files
with
0 additions
and
63 deletions
+0
-63
Lib/Queue.py
Lib/Queue.py
+0
-2
Lib/UserDict.py
Lib/UserDict.py
+0
-2
Lib/UserList.py
Lib/UserList.py
+0
-2
Lib/anydbm.py
Lib/anydbm.py
+0
-2
Lib/bisect.py
Lib/bisect.py
+0
-2
Lib/chunk.py
Lib/chunk.py
+0
-2
Lib/dumbdbm.py
Lib/dumbdbm.py
+0
-2
Lib/htmlentitydefs.py
Lib/htmlentitydefs.py
+0
-2
Lib/mutex.py
Lib/mutex.py
+0
-2
Lib/nturl2path.py
Lib/nturl2path.py
+0
-2
Lib/posixfile.py
Lib/posixfile.py
+0
-2
Lib/regex_syntax.py
Lib/regex_syntax.py
+0
-6
Lib/stat.py
Lib/stat.py
+0
-6
Lib/statvfs.py
Lib/statvfs.py
+0
-6
Lib/string.py
Lib/string.py
+0
-6
Lib/test/test___all__.py
Lib/test/test___all__.py
+0
-17
No files found.
Lib/Queue.py
View file @
09c1d1d3
"""A multi-producer, multi-consumer queue."""
__all__
=
[
"Queue"
,
"Empty"
,
"Full"
]
class
Empty
(
Exception
):
"Exception raised by Queue.get(block=0)/get_nowait()."
pass
...
...
Lib/UserDict.py
View file @
09c1d1d3
"""A more or less complete user-defined wrapper around dictionary objects."""
__all__
=
[
"UserDict"
]
class
UserDict
:
def
__init__
(
self
,
dict
=
None
):
self
.
data
=
{}
...
...
Lib/UserList.py
View file @
09c1d1d3
"""A more or less complete user-defined wrapper around list objects."""
__all__
=
[
"UserList"
]
class
UserList
:
def
__init__
(
self
,
initlist
=
None
):
self
.
data
=
[]
...
...
Lib/anydbm.py
View file @
09c1d1d3
...
...
@@ -42,8 +42,6 @@ only if it doesn't exist; and 'n' always creates a new database.
"""
__all__
=
[
"error"
,
"open"
]
try
:
class
error
(
Exception
):
pass
...
...
Lib/bisect.py
View file @
09c1d1d3
"""Bisection algorithms."""
__all__
=
[
"bisect_right"
,
"insort_right"
,
"bisect_left"
,
"insort_left"
]
def
insort_right
(
a
,
x
,
lo
=
0
,
hi
=
None
):
"""Insert item x in list a, and keep it sorted assuming a is sorted.
...
...
Lib/chunk.py
View file @
09c1d1d3
...
...
@@ -48,8 +48,6 @@ specifies whether or not chunks are aligned on 2-byte boundaries. The
default is 1, i.e. aligned.
"""
__all__
=
[
"Chunk"
]
class
Chunk
:
def
__init__
(
self
,
file
,
align
=
1
,
bigendian
=
1
,
inclheader
=
0
):
import
struct
...
...
Lib/dumbdbm.py
View file @
09c1d1d3
...
...
@@ -24,8 +24,6 @@ is read when the database is opened, and some updates rewrite the whole index)
_os
=
__import__
(
'os'
)
import
__builtin__
__all__
=
[
"open"
]
_open
=
__builtin__
.
open
_BLOCKSIZE
=
512
...
...
Lib/htmlentitydefs.py
View file @
09c1d1d3
"""HTML character entity references."""
__all__
=
[
"entitydefs"
]
entitydefs
=
{
'AElig'
:
'
\
306
'
,
# latin capital letter AE = latin capital ligature AE, U+00C6 ISOlat1
'Aacute'
:
'
\
301
'
,
# latin capital letter A with acute, U+00C1 ISOlat1
...
...
Lib/mutex.py
View file @
09c1d1d3
...
...
@@ -12,8 +12,6 @@ Of course, no multi-threading is implied -- hence the funny interface
for lock, where a function is called once the lock is aquired.
"""
__all__
=
[
"mutex"
]
class
mutex
:
def
__init__
(
self
):
"""Create a new mutex -- initially unlocked."""
...
...
Lib/nturl2path.py
View file @
09c1d1d3
"""Convert a NT pathname to a file URL and vice versa."""
__all__
=
[
"url2pathname"
]
def
url2pathname
(
url
):
r"""Convert a URL to a DOS path.
...
...
Lib/posixfile.py
View file @
09c1d1d3
...
...
@@ -53,8 +53,6 @@ f.lock(mode [, len [, start [, whence]]])
query only
"""
__all__
=
[
"open"
,
"fileopen"
,
"SEEK_SET"
,
"SEEK_CUR"
,
"SEEK_END"
]
class
_posixfile_
:
"""File wrapper class that provides extra POSIX file routines."""
...
...
Lib/regex_syntax.py
View file @
09c1d1d3
...
...
@@ -51,9 +51,3 @@ RE_SYNTAX_GREP = (RE_BK_PLUS_QM | RE_NEWLINE_OR)
RE_SYNTAX_EMACS
=
0
# (Python's obsolete "regexp" module used a syntax similar to awk.)
__all__
=
locals
().
keys
()
for
_i
in
range
(
len
(
__all__
)
-
1
,
-
1
,
-
1
):
if
__all__
[
_i
][
0
]
==
"_"
:
del
__all__
[
_i
]
del
_i
Lib/stat.py
View file @
09c1d1d3
...
...
@@ -84,9 +84,3 @@ S_IRWXO = 00007
S_IROTH
=
00004
S_IWOTH
=
00002
S_IXOTH
=
00001
__all__
=
locals
().
keys
()
for
_i
in
range
(
len
(
__all__
)
-
1
,
-
1
,
-
1
):
if
__all__
[
_i
][
0
]
==
"_"
:
del
__all__
[
_i
]
del
_i
Lib/statvfs.py
View file @
09c1d1d3
...
...
@@ -13,9 +13,3 @@ F_FFREE = 6 # Total number of free file nodes
F_FAVAIL
=
7
# Free nodes available to non-superuser
F_FLAG
=
8
# Flags (see your local statvfs man page)
F_NAMEMAX
=
9
# Maximum file name length
__all__
=
locals
().
keys
()
for
_i
in
range
(
len
(
__all__
)
-
1
,
-
1
,
-
1
):
if
__all__
[
_i
][
0
]
==
"_"
:
del
__all__
[
_i
]
del
_i
Lib/string.py
View file @
09c1d1d3
...
...
@@ -379,9 +379,3 @@ try:
letters = lowercase + uppercase
except ImportError:
pass # Use the original versions
__all__ = locals().keys()
for _i in range(len(__all__)-1,-1,-1):
if __all__[_i][0] == "_":
del __all__[_i]
del _i
Lib/test/test___all__.py
View file @
09c1d1d3
...
...
@@ -39,29 +39,22 @@ def check_all(modname):
verify
(
keys
==
all
,
"%s != %s"
%
(
keys
,
all
))
check_all
(
"BaseHTTPServer"
)
check_all
(
"Bastion"
)
check_all
(
"CGIHTTPServer"
)
check_all
(
"ConfigParser"
)
check_all
(
"Cookie"
)
check_all
(
"MimeWriter"
)
check_all
(
"Queue"
)
check_all
(
"SimpleHTTPServer"
)
check_all
(
"SocketServer"
)
check_all
(
"StringIO"
)
check_all
(
"UserDict"
)
check_all
(
"UserList"
)
check_all
(
"UserString"
)
check_all
(
"aifc"
)
check_all
(
"anydbm"
)
check_all
(
"atexit"
)
check_all
(
"audiodev"
)
check_all
(
"base64"
)
check_all
(
"bdb"
)
check_all
(
"binhex"
)
check_all
(
"bisect"
)
check_all
(
"calendar"
)
check_all
(
"cgi"
)
check_all
(
"chunk"
)
check_all
(
"cmd"
)
check_all
(
"code"
)
check_all
(
"codecs"
)
...
...
@@ -76,7 +69,6 @@ check_all("dircache")
check_all
(
"dis"
)
check_all
(
"doctest"
)
check_all
(
"dospath"
)
check_all
(
"dumbdbm"
)
check_all
(
"filecmp"
)
check_all
(
"fileinput"
)
check_all
(
"fnmatch"
)
...
...
@@ -88,7 +80,6 @@ check_all("gettext")
check_all
(
"glob"
)
check_all
(
"gopherlib"
)
check_all
(
"gzip"
)
check_all
(
"htmlentitydefs"
)
check_all
(
"htmllib"
)
check_all
(
"httplib"
)
check_all
(
"ihooks"
)
...
...
@@ -106,18 +97,15 @@ check_all("mimetools")
check_all
(
"mimetypes"
)
check_all
(
"mimify"
)
check_all
(
"multifile"
)
check_all
(
"mutex"
)
check_all
(
"netrc"
)
check_all
(
"nntplib"
)
check_all
(
"ntpath"
)
check_all
(
"nturl2path"
)
check_all
(
"os"
)
check_all
(
"pdb"
)
check_all
(
"pickle"
)
check_all
(
"pipes"
)
check_all
(
"popen2"
)
check_all
(
"poplib"
)
check_all
(
"posixfile"
)
check_all
(
"posixpath"
)
check_all
(
"pprint"
)
check_all
(
"pre"
)
...
...
@@ -130,7 +118,6 @@ check_all("quopri")
check_all
(
"random"
)
check_all
(
"re"
)
check_all
(
"reconvert"
)
check_all
(
"regex_syntax"
)
check_all
(
"regsub"
)
check_all
(
"repr"
)
check_all
(
"rexec"
)
...
...
@@ -148,9 +135,5 @@ check_all("sndhdr")
check_all
(
"socket"
)
check_all
(
"sre"
)
check_all
(
"sre_compile"
)
check_all
(
"sre_constants"
)
check_all
(
"sre_parse"
)
check_all
(
"stat"
)
check_all
(
"stat_cache"
)
check_all
(
"statvfs"
)
check_all
(
"string"
)
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment