Skip to content

Commit

Permalink
python3 compatibility
Browse files Browse the repository at this point in the history
  • Loading branch information
rxwx committed Sep 27, 2019
1 parent dc70bcc commit 1c8544f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion impacket/smbconnection.py
Original file line number Diff line number Diff line change
Expand Up @@ -850,7 +850,7 @@ def listSnapshots(self, tid, path):
raise SessionError(e.get_error_code(), e.get_error_packet())

self.closeFile(tid, fid)
return filter(None, snapshotData['SnapShots'].decode('utf16').split('\x00'))
return list(filter(None, snapshotData['SnapShots'].decode('utf16').split('\x00')))

def createMountPoint(self, tid, path, target):
"""
Expand Down

0 comments on commit 1c8544f

Please sign in to comment.