7706:0c6d32ec64f1 | 7707:6abcf4275d0e |
---|---|
172 @return the bytes read | 172 @return the bytes read |
173 @rtype str | 173 @rtype str |
174 """ | 174 """ |
175 self.__checkMode('r') | 175 self.__checkMode('r') |
176 | 176 |
177 buf = input() | 177 buf = input() # secok |
178 if size >= 0: | 178 if size >= 0: |
179 buf = buf[:size] | 179 buf = buf[:size] |
180 return buf | 180 return buf |
181 | 181 |
182 def readCommand(self): | 182 def readCommand(self): |
270 @return one line read | 270 @return one line read |
271 @rtype str | 271 @rtype str |
272 """ | 272 """ |
273 self.__checkMode('r') | 273 self.__checkMode('r') |
274 | 274 |
275 line = input() + '\n' | 275 line = input() + '\n' # secok |
276 if sizehint >= 0: | 276 if sizehint >= 0: |
277 line = line[:sizehint] | 277 line = line[:sizehint] |
278 return line | 278 return line |
279 | 279 |
280 def seekable(self): | 280 def seekable(self): |