tools: Fix Python 3.6 compatibility

This commit is contained in:
Léo Lam 2020-08-21 14:16:32 +02:00
parent cf50531807
commit a344367b01
No known key found for this signature in database
GPG Key ID: 0DF30F9081000741
1 changed files with 1 additions and 1 deletions

View File

@ -23,7 +23,7 @@ config: dict = dict()
diff_settings.apply(config, {})
myimg: str = config["myimg"]
entries = [x.strip().split() for x in subprocess.check_output(["nm", myimg], text=True).split("\n")]
entries = [x.strip().split() for x in subprocess.check_output(["nm", myimg], universal_newlines=True).split("\n")]
for entry in entries:
if len(entry) == 3: