mirror of https://github.com/n1nj4sec/pupy.git
Compare commits
No commits in common. "45d8bb642ebb1fcf397431caabfa66677316ae13" and "f032ee958df9167db1d20f26d642befdc733c925" have entirely different histories.
45d8bb642e
...
f032ee958d
|
@ -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)
|
||||
|
||||
|
|
|
@ -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())
|
||||
|
||||
|
|
Loading…
Reference in New Issue