Skip to content

Commit eccd02a

Browse files
author
Skip Montanaro
committed
more __all__ updates
1 parent e78b92a commit eccd02a

File tree

12 files changed

+34
-0
lines changed

12 files changed

+34
-0
lines changed

Lib/doctest.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -371,6 +371,8 @@ def _test():
371371
_isComment = re.compile(r"\s*#").match
372372
del re
373373

374+
__all__ = []
375+
374376
# Extract interactive examples from a string. Return a list of triples,
375377
# (source, outcome, lineno). "source" is the source code, and ends
376378
# with a newline iff the source spans more than one line. "outcome" is

Lib/dospath.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,10 @@
33
import os
44
import stat
55

6+
__all__ = ["normcase","isabs","join","splitdrive","split","splitext",
7+
"basename","dirname","commonprefix","getsize","getmtime",
8+
"getatime","islink","exists","isdir","isfile","ismount",
9+
"walk","expanduser","expandvars","normpath","abspath"]
610

711
def normcase(s):
812
"""Normalize the case of a pathname.

Lib/dumbdbm.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,8 @@
2424
_os = __import__('os')
2525
import __builtin__
2626

27+
__all__ = ["open"]
28+
2729
_open = __builtin__.open
2830

2931
_BLOCKSIZE = 512

Lib/filecmp.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,8 @@
1313
import stat
1414
import statcache
1515

16+
__all__ = ["cmp","dircmp","cmpfiles"]
17+
1618
_cache = {}
1719
BUFSIZE=8*1024
1820

Lib/fileinput.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -81,6 +81,9 @@
8181

8282
import sys, os, stat
8383

84+
__all__ = ["input","close","nextfile","filename","lineno","filelineno",
85+
"isfirstline","isstdin","FileInput"]
86+
8487
_state = None
8588

8689
DEFAULT_BUFSIZE = 8*1024

Lib/fnmatch.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,8 @@
1212

1313
import re
1414

15+
__all__ = ["fnmatch","fnmatchcase","translate"]
16+
1517
_cache = {}
1618

1719
def fnmatch(name, pat):

Lib/fpformat.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,8 @@
1313

1414
import re
1515

16+
__all__ = ["fix","sci","NotANumber"]
17+
1618
# Compiled regular expression to "decode" a number
1719
decoder = re.compile(r'^([-+]?)0*(\d*)((?:\.\d*)?)(([eE][-+]?\d+)?)$')
1820
# \0 the whole thing

Lib/ftplib.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -45,6 +45,7 @@
4545
except ImportError:
4646
import socket
4747

48+
__all__ = ["FTP","Netrc"]
4849

4950
# Magic number from <socket.h>
5051
MSG_OOB = 0x1 # Process data out of band

Lib/getopt.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,8 @@
1717
# Gerrit Holl <gerrit@nl.linux.org> moved the string-based exceptions
1818
# to class-based exceptions.
1919

20+
__all__ = ["GetoptError","error","getopt"]
21+
2022
class GetoptError(Exception):
2123
opt = ''
2224
msg = ''

Lib/getpass.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,8 @@
1313

1414
import sys
1515

16+
__all__ = ["getpass","getuser"]
17+
1618
def unix_getpass(prompt='Password: '):
1719
"""Prompt for a password, with echo turned off.
1820

0 commit comments

Comments
 (0)