summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorJeff Forcier <jeff@bitprophet.org>2017-10-16 14:19:51 -0700
committerGitHub <noreply@github.com>2017-10-16 14:19:51 -0700
commit28fc70affdddb80731d1a151eb8a0049c2eb411f (patch)
tree98d1bfe5a408e8db976dbf8aa42662007713c06d
parent6978c7a0b8faa683b119de3a0c096be31ac4fdc9 (diff)
parent1951daaf49bd42c37b168d9db1daae927e8da065 (diff)
Merge pull request #1094 from hugovk/rm-old
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 b3c7bf98..4fc27dc9 100755
--- a/tests/test_sftp.py
+++ b/tests/test_sftp.py
@@ -86,9 +86,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'