From 037230b20655d700e82ef04f4549d6e93fdd0796 Mon Sep 17 00:00:00 2001 From: Joey Payne Date: Fri, 20 Nov 2015 12:58:46 -0700 Subject: [PATCH] Str was removed so that unicode works. --- pe.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pe.py b/pe.py index e74eaed..1b7a36b 100644 --- a/pe.py +++ b/pe.py @@ -1237,7 +1237,7 @@ class PEFile(Printable): of the file, but that did not work. Comments were left as history to what I attempted. """ - icon_path = str(os.path.expanduser(icon_path)) #this needs to be a string and not unicode + icon_path = os.path.expanduser(icon_path) #this needs to be a string and not unicode if not os.path.exists(icon_path): raise Exception('Icon {} does not exist'.format(icon_path))