Changeset 391 for python/trunk/Lib/StringIO.py
- Timestamp:
- Mar 19, 2014, 11:31:01 PM (11 years ago)
- Location:
- python/trunk
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
python/trunk
-
Property svn:mergeinfo
set to
/python/vendor/Python-2.7.6 merged eligible /python/vendor/current merged eligible
-
Property svn:mergeinfo
set to
-
python/trunk/Lib/StringIO.py
r2 r391 129 129 self.buf += ''.join(self.buflist) 130 130 self.buflist = [] 131 if n < 0:131 if n is None or n < 0: 132 132 newpos = self.len 133 133 else: … … 159 159 else: 160 160 newpos = i+1 161 if length is not None and length > 0:161 if length is not None and length >= 0: 162 162 if self.pos + length < newpos: 163 163 newpos = self.pos + length … … 267 267 is called. 268 268 """ 269 _complain_ifclosed(self.closed) 269 270 if self.buflist: 270 271 self.buf += ''.join(self.buflist)
Note:
See TracChangeset
for help on using the changeset viewer.