Compare commits

..

No commits in common. "45d8bb642ebb1fcf397431caabfa66677316ae13" and "f032ee958df9167db1d20f26d642befdc733c925" have entirely different histories.

2 changed files with 3 additions and 3 deletions

View File

@ -255,12 +255,12 @@ def set_debug(is_enabled):
global __debug
if is_enabled:
sys.tracebacklimit = 30
sys.tracebacklimit = 20
__debug = True
setattr(sys, "__debug", True)
else:
sys.tracebacklimit = 20
sys.tracebacklimit = 0
__debug = False
setattr(sys, "__debug", False)

View File

@ -64,7 +64,7 @@ def get_streams(filename):
if not NTFS_STREAMS_API_PRESENT:
return []
if type(filename) == bytes:
if type(filename) == str:
filename = filename.decode(
getfilesystemencoding())