Scott Maxwell
6d75c75e64
Remove byte conversions and unhexlify calls that we only needed for Py2.5 support and use the `b` byte string marker instead
2013-11-19 10:09:08 -08:00
Scott Maxwell
981f768a62
Remove `from __future__ import with_statement`
2013-11-19 09:38:05 -08:00
Scott Maxwell
dcc78768bf
Remove unnecessary vars for open
2013-11-19 09:38:05 -08:00
Scott Maxwell
106f9ea444
Use 'with' for opening most file and SFTPFIle objects
2013-11-19 09:38:05 -08:00
Scott Maxwell
2da5f1fb45
Use 'with' for opening most file and SFTPFIle objects
2013-11-19 08:56:53 -08:00
Scott Maxwell
7471515fff
Remove eval that was required for Py25 support
2013-11-19 08:07:46 -08:00
Scott Maxwell
25dd096da0
Change all exceptions to modern format (not Py2.5 compatible)
2013-11-19 08:06:35 -08:00
Scott Maxwell
3ce336c88b
Change conditional from PY3 to PY2 to be better prepared for a possible Py4.
2013-11-19 07:30:45 -08:00
Scott Maxwell
01731fa2c3
Bump version to 1.13.0
2013-11-02 20:28:02 -07:00
Scott Maxwell
7d5fa50ca4
More type conversions
2013-11-02 20:20:09 -07:00
Scott Maxwell
dc58b7bcb2
Fix message to handle long properly, even on Py3
2013-11-02 20:19:52 -07:00
Scott Maxwell
7444a99993
Fix some deprecation and resource warnings
2013-11-02 20:19:04 -07:00
Scott Maxwell
45e65b6e1e
Make sftp.open handle binary and text, more type conversion
2013-11-02 14:56:43 -07:00
Scott Maxwell
7decda3297
Fix thread stop for Py3
2013-11-01 12:32:57 -07:00
Scott Maxwell
9662a7f779
Changes inspired by the nischu7 branch
2013-11-01 09:49:52 -07:00
Scott Maxwell
06b866cf40
Don't import test_sftp or test_sftp_big unless we are going to do the tests
2013-11-01 01:06:17 -07:00
Scott Maxwell
201a61d66d
Have to use u'' format in test_sftp so this test won't run on Py3.2 unless we find a solution
2013-11-01 01:02:50 -07:00
Scott Maxwell
fee18142a5
Fixes for Python 2.5 and Python 3.2 support
2013-11-01 00:51:00 -07:00
Scott Maxwell
8a7267beeb
Eliminate all uses of b'' syntax to allow for Python 2.5 support
2013-11-01 00:37:11 -07:00
Scott Maxwell
d5ce2b43d6
More type fixes
2013-10-31 18:52:55 -07:00
Scott Maxwell
0677ea76cd
Fixes for test_sftp
2013-10-31 17:20:27 -07:00
Scott Maxwell
8e1a7ef4d8
More type conversion
2013-10-31 17:19:58 -07:00
Scott Maxwell
d26bf3e63e
More type conversion
2013-10-31 16:19:11 -07:00
Scott Maxwell
951e8cfd3a
Fix demos
2013-10-31 16:18:31 -07:00
Scott Maxwell
bc683ac365
Fix demo_server
2013-10-31 15:35:35 -07:00
Scott Maxwell
8bda3ab2bb
Fix demo_keygen
2013-10-31 15:25:57 -07:00
Scott Maxwell
7a45d3c70f
More type conversion
2013-10-31 15:25:45 -07:00
Scott Maxwell
09a4ffb282
Salt needs to be 16 bytes instead of 8
2013-10-31 15:24:09 -07:00
Scott Maxwell
04097cbb26
Switch feed from text to binary
2013-10-31 11:37:37 -07:00
Scott Maxwell
85ade33ae3
More type fixups
2013-10-31 11:36:47 -07:00
Alex Gaynor
68cf5ab063
Removed an unused import.
2013-10-31 10:50:19 -07:00
Scott Maxwell
488d85f981
Setup so we can run test_sftp_big independently
2013-10-31 10:03:38 -07:00
Scott Maxwell
fcf56ff9f8
Fix bytes/str type in more places
2013-10-31 10:01:21 -07:00
Scott Maxwell
e4e1dc2002
Fix next
2013-10-30 17:15:40 -07:00
Scott Maxwell
7cdbbf4bdc
Fix input
2013-10-30 17:15:25 -07:00
Scott Maxwell
0b7d0cf0a2
Convert and detect types properly, use helper constants, use StringIO and range
2013-10-30 17:14:52 -07:00
Scott Maxwell
2d738fa08b
Fix winapi
2013-10-30 17:09:50 -07:00
Scott Maxwell
0e4ce3762a
Fix message sending
...
Create constants for byte messages, implement asbytes so many methods can take Message and key objects directly and split get_string into get_text and get_binary. Also, change int handling to use mpint with a flag whenever the int is greater than 32 bits.
2013-10-30 17:09:34 -07:00
Scott Maxwell
339d73cc13
Fix imports
2013-10-30 16:49:33 -07:00
Scott Maxwell
2ea352b8ba
Fix dict iters, sorts, exceptions, bytes renames and tuple args
2013-10-30 16:46:33 -07:00
Scott Maxwell
6bd1e42b43
Fix imports
2013-10-30 16:23:36 -07:00
Scott Maxwell
644c52266c
Use test_path to avoid relative path issues
2013-10-30 16:22:52 -07:00
Scott Maxwell
66cfa97cce
Fix imports
2013-10-30 16:19:30 -07:00
Scott Maxwell
3afc76a6b4
Write to locals instead of globals
2013-10-30 16:10:17 -07:00
Scott Maxwell
3301473ae7
Uncap the requirements
2013-10-30 16:07:30 -07:00
Scott Maxwell
cd918d0dc6
Add Py3 helpers to common.py
2013-10-30 16:07:03 -07:00
Scott Maxwell
8edd2cc75e
Add Py3.2 and Py3.3 to tox
2013-10-30 16:06:09 -07:00
Scott Maxwell
f73d5f73e5
Fix print statements
2013-10-30 16:05:47 -07:00
Scott Maxwell
e5822c9fa1
Add Py3.2 and Py3.3 to travis
2013-10-30 16:02:01 -07:00
Scott Maxwell
7aaf42a7b1
Add Py3 compatibility support helpers
2013-10-30 15:59:58 -07:00