summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorHugo <hugovk@users.noreply.github.com>2017-10-14 10:39:58 +0300
committerJeff Forcier <jeff@bitprophet.org>2018-09-17 14:41:01 -0700
commit903f21d99d9e47dfc519c1521f8dbb8b4ff5724a (patch)
tree162a62d69ba7ea4b45c38e0c8b04741369f1f089
parent10900a91cf91b10859f6060a1897a697104e6877 (diff)
Remove old Python 3.2 code
-rwxr-xr-xtests/test_sftp.py4
1 files changed, 1 insertions, 3 deletions
diff --git a/tests/test_sftp.py b/tests/test_sftp.py
index a38c2e7d..9154a795 100755
--- a/tests/test_sftp.py
+++ b/tests/test_sftp.py
@@ -89,9 +89,7 @@ FOLDER = os.environ.get('TEST_FOLDER', 'temp-testing000')
sftp = None
tc = None
g_big_file_test = True
-# we need to use eval(compile()) here because Py3.2 doesn't support the 'u' marker for unicode
-# this test is the only line in the entire program that has to be treated specially to support Py3.2
-unicode_folder = eval(compile(r"u'\u00fcnic\u00f8de'" if PY2 else r"'\u00fcnic\u00f8de'", 'test_sftp.py', 'eval'))
+unicode_folder = u'\u00fcnic\u00f8de' if PY2 else '\u00fcnic\u00f8de'
utf8_folder = b'/\xc3\xbcnic\xc3\xb8\x64\x65'