Unverified Commit 36de6f78 by devttys0 Committed by GitHub

Merge pull request #383 from Lo-Road/master

Fixed issue with next_target_file being unicode and causing an exception
parents be738a52 72c5bf01
...@@ -415,7 +415,7 @@ class Module(object): ...@@ -415,7 +415,7 @@ class Module(object):
# Values in self.target_file_list are either already open files (BlockFile instances), or paths # Values in self.target_file_list are either already open files (BlockFile instances), or paths
# to files that need to be opened for scanning. # to files that need to be opened for scanning.
if isinstance(next_target_file, str): if isinstance(next_target_file, str) or isinstance(next_target_file, unicode):
fp = self.config.open_file(next_target_file) fp = self.config.open_file(next_target_file)
else: else:
fp = next_target_file fp = next_target_file
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment