Changeset 1717:827cfaff87d7
- Timestamp:
- Dec 25, 2018, 11:05:32 PM (2 years ago)
- Branch:
- default
- histedit_source:
- 0a87e070cc46fff630b6cb475bbafedf1a4bc6c7
- Location:
- ftputil
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
ftputil/file.py
r1716 r1717 45 45 instead this file object is modified in-place. 46 46 """ 47 # We use the same arguments as in ` io.open`.47 # We use the same arguments as in `open`. 48 48 # pylint: disable=too-many-arguments 49 49 # -
ftputil/file_transfer.py
r1713 r1717 7 7 """ 8 8 9 import io10 9 import os 11 10 … … 55 54 def fobj(self): 56 55 """Return a file object for the name/path in the constructor.""" 57 return io.open(self.name, self.mode)56 return open(self.name, self.mode) 58 57 59 58 -
ftputil/host.py
r1715 r1717 190 190 this `FTPHost` object. 191 191 192 The arguments `path`, `mode`, `buffering`, `encoding`, `errors`193 and `newlines` have the same meaning as for `io.open`. If `rest`194 is given as an integer,192 The arguments `path`, `mode`, `buffering`, `encoding`, 193 `errors` and `newlines` have the same meaning as for `open`. 194 If `rest` is given as an integer, 195 195 196 196 - reading will start at the byte (zero-based) `rest` … … 200 200 if none is available. 201 201 """ 202 # Support the same arguments as ` io.open`.202 # Support the same arguments as `open`. 203 203 # pylint: disable=too-many-arguments 204 204 path = ftputil.tool.as_unicode(path)
Note: See TracChangeset
for help on using the changeset viewer.