diff --git a/direct/src/showutil/pefile.py b/direct/src/showutil/pefile.py index 03714b82fb..4617a4e488 100755 --- a/direct/src/showutil/pefile.py +++ b/direct/src/showutil/pefile.py @@ -601,6 +601,9 @@ class PEFile(object): def get_export_address(self, symbol_name): """ Finds the virtual address for a named export symbol. """ + if isinstance(symbol_name, bytes): + symbol_name = symbol_name.decode('ascii') + start = self.exp_rva.addr expdir = expdirtab(*unpack('