[entropy.qa] fix test_shared_objects() with Python 3

Other parts of this function and called ones work or can work with
strings.
This commit is contained in:
Sławomir Nizio
2019-12-06 01:04:04 +01:00
parent d65f09fcf8
commit 7abd4dad80

View File

@@ -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):