diff options
author | Scott Maxwell <scott@codecobblers.com> | 2013-11-01 00:37:11 -0700 |
---|---|---|
committer | Scott Maxwell <scott@codecobblers.com> | 2013-11-01 00:37:11 -0700 |
commit | 8a7267beeb3435fa16c06d22c201650e1e593d89 (patch) | |
tree | 0f78c4a7d45f226abcb60cd53907d6be3ecd0656 /paramiko/common.py | |
parent | d5ce2b43d602282fe2aa826481759c48d18c9b38 (diff) | |
download | paramiko-8a7267beeb3435fa16c06d22c201650e1e593d89.tar.gz |
Eliminate all uses of b'' syntax to allow for Python 2.5 support
Diffstat (limited to 'paramiko/common.py')
-rw-r--r-- | paramiko/common.py | 16 |
1 files changed, 6 insertions, 10 deletions
diff --git a/paramiko/common.py b/paramiko/common.py index 5d7ab313..37d5ee89 100644 --- a/paramiko/common.py +++ b/paramiko/common.py @@ -123,19 +123,15 @@ else: import logging PY22 = False +zero_byte = byte_chr(0) +one_byte = byte_chr(1) +four_byte = byte_chr(4) +max_byte = byte_chr(0xff) +newline_byte = byte_chr(10) + if PY3: - zero_byte = b'\x00' - one_byte = b'\x01' - four_byte = b'\x04' - max_byte = b'\xff' - newline_byte = b'\n' cr_byte = 13 else: - zero_byte = '\x00' - one_byte = '\x01' - four_byte = '\x04' - max_byte = '\xff' - newline_byte = '\n' cr_byte = '\r' |