summaryrefslogtreecommitdiff
path: root/paramiko/util.py
diff options
context:
space:
mode:
authorJeff Forcier <jeff@bitprophet.org>2017-10-16 15:24:04 -0700
committerJeff Forcier <jeff@bitprophet.org>2017-10-16 15:24:32 -0700
commit087444cf4cf3302908c9bda34f488b005df0ea8c (patch)
tree126d2a2fc5aafb1f5b3c9c8b16a40bd1e29fb991 /paramiko/util.py
parent28fc70affdddb80731d1a151eb8a0049c2eb411f (diff)
downloadparamiko-087444cf4cf3302908c9bda34f488b005df0ea8c.tar.gz
Dropped Python 2.6 so we can stop using u()/b() for literals.
Sadly we (ab?)use them in many more places, but hey, every little bit counts
Diffstat (limited to 'paramiko/util.py')
-rw-r--r--paramiko/util.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/paramiko/util.py b/paramiko/util.py
index b056c20a..f72d429c 100644
--- a/paramiko/util.py
+++ b/paramiko/util.py
@@ -111,13 +111,13 @@ def format_binary_line(data):
def safe_string(s):
- out = b('')
+ out = b''
for c in s:
i = byte_ord(c)
if 32 <= i <= 127:
out += byte_chr(i)
else:
- out += b('%{:02X}'.format(i))
+ out += b'%{:02X}'.format(i)
return out