@@ -94,7 +94,7 @@ def input(files=None, inplace=0, backup="", bufsize=0):
9494 Create an instance of the FileInput class. The instance will be used
9595 as global state for the functions of this module, and is also returned
9696 to use during iteration. The parameters to this function will be passed
97- along to the constructor of the FileInput class.
97+ along to the constructor of the FileInput class.
9898 """
9999 global _state
100100 if _state and _state ._file :
@@ -118,7 +118,7 @@ def nextfile():
118118 changed until after the first line of the next file has been read.
119119 Before the first line has been read, this function has no effect;
120120 it cannot be used to skip the first file. After the last line of the
121- last file has been read, this function has no effect.
121+ last file has been read, this function has no effect.
122122 """
123123 if not _state :
124124 raise RuntimeError , "no active input()"
@@ -127,7 +127,7 @@ def nextfile():
127127def filename ():
128128 """
129129 Return the name of the file currently being read.
130- Before the first line has been read, returns None.
130+ Before the first line has been read, returns None.
131131 """
132132 if not _state :
133133 raise RuntimeError , "no active input()"
@@ -137,7 +137,7 @@ def lineno():
137137 """
138138 Return the cumulative line number of the line that has just been read.
139139 Before the first line has been read, returns 0. After the last line
140- of the last file has been read, returns the line number of that line.
140+ of the last file has been read, returns the line number of that line.
141141 """
142142 if not _state :
143143 raise RuntimeError , "no active input()"
@@ -147,7 +147,7 @@ def filelineno():
147147 """
148148 Return the line number in the current file. Before the first line
149149 has been read, returns 0. After the last line of the last file has
150- been read, returns the line number of that line within the file.
150+ been read, returns the line number of that line within the file.
151151 """
152152 if not _state :
153153 raise RuntimeError , "no active input()"
@@ -156,7 +156,7 @@ def filelineno():
156156def isfirstline ():
157157 """
158158 Returns true the line just read is the first line of its file,
159- otherwise returns false.
159+ otherwise returns false.
160160 """
161161 if not _state :
162162 raise RuntimeError , "no active input()"
@@ -165,22 +165,22 @@ def isfirstline():
165165def isstdin ():
166166 """
167167 Returns true if the last line was read from sys.stdin,
168- otherwise returns false.
168+ otherwise returns false.
169169 """
170170 if not _state :
171171 raise RuntimeError , "no active input()"
172172 return _state .isstdin ()
173173
174174class FileInput :
175175 """class FileInput([files[, inplace[, backup]]])
176-
176+
177177 Class FileInput is the implementation of the module; its methods
178178 filename(), lineno(), fileline(), isfirstline(), isstdin(), nextfile()
179179 and close() correspond to the functions of the same name in the module.
180180 In addition it has a readline() method which returns the next
181181 input line, and a __getitem__() method which implements the
182182 sequence behavior. The sequence must be accessed in strictly
183- sequential order; random access and readline() cannot be mixed.
183+ sequential order; random access and readline() cannot be mixed.
184184 """
185185
186186 def __init__ (self , files = None , inplace = 0 , backup = "" , bufsize = 0 ):
0 commit comments