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
7978e104
Commit
7978e104
authored
Jan 16, 2016
by
Martin Panter
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Issue #23883: Missing fileinput.__all__ APIs; patch by Mauro SM Rodrigues
parent
7b3a82ff
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
11 additions
and
1 deletion
+11
-1
Lib/fileinput.py
Lib/fileinput.py
+2
-1
Lib/test/test_fileinput.py
Lib/test/test_fileinput.py
+8
-0
Misc/ACKS
Misc/ACKS
+1
-0
No files found.
Lib/fileinput.py
View file @
7978e104
...
...
@@ -82,7 +82,8 @@ XXX Possible additions:
import
sys
,
os
__all__
=
[
"input"
,
"close"
,
"nextfile"
,
"filename"
,
"lineno"
,
"filelineno"
,
"isfirstline"
,
"isstdin"
,
"FileInput"
]
"fileno"
,
"isfirstline"
,
"isstdin"
,
"FileInput"
,
"hook_compressed"
,
"hook_encoded"
]
_state
=
None
...
...
Lib/test/test_fileinput.py
View file @
7978e104
...
...
@@ -24,6 +24,7 @@ from fileinput import FileInput, hook_encoded
from
test.support
import
verbose
,
TESTFN
,
run_unittest
,
check_warnings
from
test.support
import
unlink
as
safe_unlink
from
test
import
support
from
unittest
import
mock
...
...
@@ -913,5 +914,12 @@ class Test_hook_encoded(unittest.TestCase):
check
(
'rb'
,
[
'A
\
n
'
,
'B
\
r
\
n
'
,
'C
\
r
'
,
'D
\
u20ac
'
])
class
MiscTest
(
unittest
.
TestCase
):
def
test_all
(
self
):
blacklist
=
{
'DEFAULT_BUFSIZE'
}
support
.
check__all__
(
self
,
fileinput
,
blacklist
=
blacklist
)
if
__name__
==
"__main__"
:
unittest
.
main
()
Misc/ACKS
View file @
7978e104
...
...
@@ -1219,6 +1219,7 @@ Mark Roddy
Kevin Rodgers
Sean Rodman
Giampaolo Rodola
Mauro S. M. Rodrigues
Elson Rodriguez
Adi Roiban
Luis Rojas
...
...
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