From 7abd4dad800592506eadda3b5da8c4988fabb313 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?S=C5=82awomir=20Nizio?= Date: Fri, 6 Dec 2019 01:04:04 +0100 Subject: [PATCH] [entropy.qa] fix test_shared_objects() with Python 3 Other parts of this function and called ones work or can work with strings. --- lib/entropy/qa.py | 4 ---- 1 file changed, 4 deletions(-) diff --git a/lib/entropy/qa.py b/lib/entropy/qa.py index 5a252e9cb..05e8c0451 100644 --- a/lib/entropy/qa.py +++ b/lib/entropy/qa.py @@ -682,10 +682,6 @@ class QAInterface(TextInterface, EntropyPluginStore): percent = True, header = " " ) - try: - ldpath = ldpath.encode('utf-8') - except (UnicodeEncodeError,): - ldpath = ldpath.encode(sys.getfilesystemencoding()) mywalk_iter = os.walk(etpConst['systemroot'] + ldpath) for x in map(_are_elfs, mywalk_iter):