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
|
||||
|
||||
if is_enabled:
|
||||
sys.tracebacklimit = 20
|
||||
sys.tracebacklimit = 30
|
||||
__debug = True
|
||||
setattr(sys, "__debug", True)
|
||||
|
||||
else:
|
||||
sys.tracebacklimit = 0
|
||||
sys.tracebacklimit = 20
|
||||
__debug = False
|
||||
setattr(sys, "__debug", False)
|
||||
|
||||
|
|
|
@ -64,7 +64,7 @@ def get_streams(filename):
|
|||
if not NTFS_STREAMS_API_PRESENT:
|
||||
return []
|
||||
|
||||
if type(filename) == str:
|
||||
if type(filename) == bytes:
|
||||
filename = filename.decode(
|
||||
getfilesystemencoding())
|
||||
|
||||
|
|
Loading…
Reference in New Issue