Skip to content

Commit

Permalink
Merge pull request kaitai-io#19 from zskdan/master
Browse files Browse the repository at this point in the history
rar_fs: fix running with python3
  • Loading branch information
generalmimon authored Jun 30, 2020
2 parents 0c4a773 + bf56ff3 commit 9e50744
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion kaitaifs/fs/rar_fs.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ def __init__(self, filename):
def generate_tree(self):
for block in self.obj.blocks:
if block.block_type == Rar.BlockTypes.file_header:
self.add_obj_to_path(block.body.file_name.split('\\'), block)
self.add_obj_to_path(block.body.file_name.decode("utf-8").split('\\'), block)

def get_file_attrs(self, obj):
a = super(RarFS, self).get_file_attrs(obj)
Expand Down

0 comments on commit 9e50744

Please sign in to comment.