Skip to content

Fix TypeError when joining lines#7

Open
0xhido wants to merge 1 commit intodavidpany:masterfrom
0xhido:master
Open

Fix TypeError when joining lines#7
0xhido wants to merge 1 commit intodavidpany:masterfrom
0xhido:master

Conversation

@0xhido
Copy link
Copy Markdown

@0xhido 0xhido commented Aug 14, 2020

The join function expects getting string but we are reading bytes:

objects_file = open(sys.argv[1], "rb")

So I cast it to be a string:

current_line = str(objects_file.readline())

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant