summaryrefslogtreecommitdiff
path: root/paramiko/file.py
Commit message (Collapse)AuthorAgeFilesLines
* Docstring and changelog tweaks, thanks @bskinn!Jeff Forcier2023-01-201-1/+3
|
* blackenJeff Forcier2023-01-111-3/+1
|
* text_type -> strJeff Forcier2023-01-091-2/+1
|
* bytes_types -> bytesJeff Forcier2023-01-091-2/+2
|
* Move b, u helpers to util module for nowJeff Forcier2023-01-091-2/+2
| | | | Later on we can likely nuke many uses of these
* Update BytesIOJeff Forcier2023-01-091-1/+3
|
* Remove py3compat.PY2, including related streamliningJeff Forcier2023-01-091-32/+13
|
* Fix Free Software Foundation addressPaul Howarth2022-03-151-1/+1
| | | | They moved from Temple Place to Franklin Street in 2005.
* Massively speed up low-level SFTP read/writeJeff Forcier2022-03-071-4/+5
| | | | | | | | | | | | | | This doesn't impact most users who perform reads/writes using SFTPClient.get(fo)/put(fo) as those naturally perform chunking. However, users accessing the raw SFTPFile objects via SFTPClient.open() and then reading/writing large (more than a few MB) files, may experience severe slowdown due to inefficient slicing of the file being read/written. This change replaces the naive "slice a list of bytes" code with bytearray and memoryview, which are significantly more performant in these use cases, while remaining backwards compatible. Patch courtesy of Sevastian Tchernov.
* Blacken under black 18.5b0Jeff Forcier2018-05-291-11/+7
|
* Blacken Paramiko on 2.4Chris Rose2018-05-171-30/+36
|
* Same issue as I ran into with invoke: somehow, Python 2.7 intersphinx no ↵Jeff Forcier2017-10-131-1/+1
| | | | longer understands 'list' :(
* Tweak comments as suggested in reviewMartin Packman2017-06-091-2/+1
| | | | Thanks to bitprophet and ploxiln.
* Allow any buffer type to written to BufferedFileMartin Packman2017-06-091-2/+5
| | | | | | | | | | Fixes #967 Also adds test coverage for writing various types to BufferedFile which required some small changes to the test LoopbackFile subclass. Change against the 1.17 branch.
* Move to 'inv sites' style doc nitpicking.Jeff Forcier2017-06-051-10/+10
| | | | | | | Existing just-warnings setup was old and not as rigorous as my usual. Required a lot of stupid little changes, but now same tooling for all projects, toot toot.
* More death to line continuationsJeff Forcier2017-05-311-11/+21
|
* Additional house style formatting tweaks, mostly re: removal of line ↵Jeff Forcier2017-05-311-2/+3
| | | | continuations
* More flake8 fixes and skip some modules.Dorian Pula2017-05-311-15/+26
|
* Added bytes as type to writeKalle Møller2017-01-251-1/+1
| | | Small change so that my IDE stops telling me, that this function doesn't understand bytes :)
* Update rest of file re: s/return/returns/Jeff Forcier2015-12-171-5/+5
|
* Tweak some off-spec or busted docstring bitsJeff Forcier2015-12-171-11/+11
|
* add unit tests for file-like object methods and update changelog and docsAdam Meily2015-09-241-0/+7
|
* add missing file-like object methodsAdam Meily2015-09-211-6/+41
| | | | | Four methods were missing: readable(), writable(), seekable(), and readinto().
* Merge branch '1.14' into 1.15Jeff Forcier2014-12-171-4/+12
|\ | | | | | | | | Conflicts: sites/www/changelog.rst
| * Refactoringachapp2014-12-171-2/+5
| | | | | | | | | | Added comments. Removed fifth line from test because it was unnecessary since the final line could be used instead.
| * new readline test passesachapp2014-12-171-6/+6
| | | | | | | | | | | | Changed file.py readline() to always check for a newline. Had to make a few changes for what went into self._rbuffer in the case where buffer size was met or exceeded and we found a newline.
| * Test update/Fix progress temp saveachapp2014-12-171-2/+7
| | | | | | | | | | Edited test to catch readline error. file.py code change in progress (DOES NOT WORK PROPERLY) so saving it temporarily.
* | Merge branch '1.14' into 1.15Jeff Forcier2014-09-181-5/+4
|\ \ | |/
| * Fix more missed epydoc syntaxJeff Forcier2014-09-181-5/+4
| |
* | Turn BufferedFile into a context managerMichael Williamson2014-09-071-1/+3
|/
* FormattingJeff Forcier2014-04-241-1/+2
|
* Fix some trailing whitespaceJeff Forcier2014-04-241-1/+1
|
* Merge updated a01e449 from al-tonioJeff Forcier2014-04-241-3/+5
|
* Reword docs/changelog re #315Jeff Forcier2014-04-241-10/+9
|
* BufferedFile.read() now returns byte strings instead of text stringsAntoine Brenner2014-04-171-6/+15
| | | | | | | | | | | | | It is the right thing to do since we have no idea what encoding the file is in, or even if the file is text data. BufferedFile.readline() is unchanged and returns text strings assuming the file is utf-8 encoded. This should fix the following issue: http://comments.gmane.org/gmane.comp.sysutils.backup.obnam/252 Antoine Brenner Conflicts: sites/www/changelog.rst
* Fix import * and a bunch of PEP8 formattingScott Maxwell2014-03-071-10/+7
|
* Fix a bunch of indentation errors.Jeff Forcier2014-03-051-12/+12
| | | | Maybe that whitespace merge flag was not so great an idea.
* Merge remote-tracking branch 'scottkmaxwell/py3-support-without-py25' into ↵Jeff Forcier2014-03-051-27/+45
|\ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | python3 Conflicts: dev-requirements.txt paramiko/__init__.py paramiko/file.py paramiko/hostkeys.py paramiko/message.py paramiko/proxy.py paramiko/server.py paramiko/transport.py paramiko/util.py paramiko/win_pageant.py setup.py
| * Change conditional from PY3 to PY2 to be better prepared for a possible Py4.Scott Maxwell2013-11-191-3/+3
| |
| * Make sftp.open handle binary and text, more type conversionScott Maxwell2013-11-021-24/+25
| |
| * More type conversionScott Maxwell2013-10-311-1/+1
| |
| * Fix nextScott Maxwell2013-10-301-15/+32
| |
| * Fix dict iters, sorts, exceptions, bytes renames and tuple argsScott Maxwell2013-10-301-3/+3
| |
| * Fix importsScott Maxwell2013-10-301-1/+1
| |
* | More info field updatesJeff Forcier2014-02-261-32/+17
| |
* | s/python/Python/, c'mon son!Jeff Forcier2014-02-211-2/+2
| |
* | BufferedFileJeff Forcier2014-02-211-13/+10
| |
* | Don't actually need :class: anywhere nowJeff Forcier2014-02-211-1/+1
| |
* | Replace accidental class-refs on local method-refsJeff Forcier2014-02-211-6/+6
| |
* | Mass SnR of class refs with dotted ones.Jeff Forcier2014-02-211-1/+1
| | | | | | | | | | | | | | | | Boo on Sphinx for not letting me just change this behavior by default. There are a handful of incorrect items here that will get tweaked later.