(original) (raw)

changeset: 99925:571632315c36 parent: 99923:e96c1491896d user: Martin Panter vadmium+py@gmail.com date: Sat Jan 16 06:26:54 2016 +0000 files: Lib/fileinput.py Lib/test/test_fileinput.py Misc/ACKS description: Issue #23883: Missing fileinput.__all__ APIs; patch by Mauro SM Rodrigues diff -r e96c1491896d -r 571632315c36 Lib/fileinput.py --- a/Lib/fileinput.py Fri Jan 15 21:46:08 2016 -0800 +++ b/Lib/fileinput.py Sat Jan 16 06:26:54 2016 +0000 @@ -82,7 +82,8 @@ import sys, os __all__ = ["input", "close", "nextfile", "filename", "lineno", "filelineno", - "isfirstline", "isstdin", "FileInput"] + "fileno", "isfirstline", "isstdin", "FileInput", "hook_compressed", + "hook_encoded"] _state = None diff -r e96c1491896d -r 571632315c36 Lib/test/test_fileinput.py --- a/Lib/test/test_fileinput.py Fri Jan 15 21:46:08 2016 -0800 +++ b/Lib/test/test_fileinput.py Sat Jan 16 06:26:54 2016 +0000 @@ -24,6 +24,7 @@ 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 @@ 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() diff -r e96c1491896d -r 571632315c36 Misc/ACKS --- a/Misc/ACKS Fri Jan 15 21:46:08 2016 -0800 +++ b/Misc/ACKS Sat Jan 16 06:26:54 2016 +0000 @@ -1219,6 +1219,7 @@ Kevin Rodgers Sean Rodman Giampaolo Rodola +Mauro S. M. Rodrigues Elson Rodriguez Adi Roiban Luis Rojas /vadmium+py@gmail.com