mirror of https://github.com/n1nj4sec/pupy.git
Compare commits
2 Commits
f032ee958d
...
45d8bb642e
Author | SHA1 | Date |
---|---|---|
n1nj4sec | 45d8bb642e | |
n1nj4sec | 1524cd2ed2 |
|
@ -255,12 +255,12 @@ def set_debug(is_enabled):
|
||||||
global __debug
|
global __debug
|
||||||
|
|
||||||
if is_enabled:
|
if is_enabled:
|
||||||
sys.tracebacklimit = 20
|
sys.tracebacklimit = 30
|
||||||
__debug = True
|
__debug = True
|
||||||
setattr(sys, "__debug", True)
|
setattr(sys, "__debug", True)
|
||||||
|
|
||||||
else:
|
else:
|
||||||
sys.tracebacklimit = 0
|
sys.tracebacklimit = 20
|
||||||
__debug = False
|
__debug = False
|
||||||
setattr(sys, "__debug", False)
|
setattr(sys, "__debug", False)
|
||||||
|
|
||||||
|
|
|
@ -64,7 +64,7 @@ def get_streams(filename):
|
||||||
if not NTFS_STREAMS_API_PRESENT:
|
if not NTFS_STREAMS_API_PRESENT:
|
||||||
return []
|
return []
|
||||||
|
|
||||||
if type(filename) == str:
|
if type(filename) == bytes:
|
||||||
filename = filename.decode(
|
filename = filename.decode(
|
||||||
getfilesystemencoding())
|
getfilesystemencoding())
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue