Skip to content

Commit 1341b9b

Browse files
committed
remove python 2.x code
Signed-off-by: Tomasz Kłoczko <kloczek@github.com>
1 parent ba1acac commit 1341b9b

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

gssapi/tests/test_high_level.py

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -545,10 +545,7 @@ def test_to_str(self):
545545

546546
name_str = str(name)
547547

548-
if sys.version_info[0] == 2:
549-
target_val = SERVICE_PRINCIPAL
550-
else:
551-
target_val = SERVICE_PRINCIPAL.decode(gssutils._get_encoding())
548+
target_val = SERVICE_PRINCIPAL.decode(gssutils._get_encoding())
552549

553550
self.assertEqual(name_str, target_val)
554551

0 commit comments

Comments
 (0)