Skip to content

Commit b1c6827

Browse files
committed
Merge with 3.3
2 parents 3fe70b4 + 70d2c71 commit b1c6827

File tree

2 files changed

+6
-7
lines changed

2 files changed

+6
-7
lines changed

Lib/fileinput.py

Lines changed: 5 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -90,13 +90,11 @@
9090

9191
def input(files=None, inplace=False, backup="", bufsize=0,
9292
mode="r", openhook=None):
93-
"""input(files=None, inplace=False, backup="", bufsize=0, \
94-
mode="r", openhook=None)
93+
"""Return an instance of the FileInput class, which can be iterated.
9594
96-
Create an instance of the FileInput class. The instance will be used
97-
as global state for the functions of this module, and is also returned
98-
to use during iteration. The parameters to this function will be passed
99-
along to the constructor of the FileInput class.
95+
The parameters are passed to the constructor of the FileInput class.
96+
The returned instance, in addition to being an iterator,
97+
keeps global state for the functions of this module,.
10098
"""
10199
global _state
102100
if _state and _state._file:
@@ -183,7 +181,7 @@ def isstdin():
183181
return _state.isstdin()
184182

185183
class FileInput:
186-
"""class FileInput([files[, inplace[, backup[, mode[, openhook]]]]])
184+
"""FileInput([files[, inplace[, backup[, bufsize, [, mode[, openhook]]]]]])
187185
188186
Class FileInput is the implementation of the module; its methods
189187
filename(), lineno(), fileline(), isfirstline(), isstdin(), fileno(),

Misc/ACKS

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1154,6 +1154,7 @@ John W. Shipman
11541154
Joel Shprentz
11551155
Itamar Shtull-Trauring
11561156
Yue Shuaijie
1157+
Terrel Shumway
11571158
Eric Siegerman
11581159
Paul Sijben
11591160
SilentGhost

0 commit comments

Comments
 (0)