Skip to content

removes explicit decoding of arguments#33

Open
fengor wants to merge 1 commit intosharat87:masterfrom
fengor:issue32-decode_bug
Open

removes explicit decoding of arguments#33
fengor wants to merge 1 commit intosharat87:masterfrom
fengor:issue32-decode_bug

Conversation

@fengor
Copy link
Copy Markdown

@fengor fengor commented Dec 13, 2017

the elements of argv are already str objects which are already considered decoded by python 3.5.2. This commit adds a try-except block for the AttributeError that is raised. This should keep the decoding intact for python2 while silently dropping the error in python3

fixes #32

the elements of argv are already str objects which are already considered decoded by python 3.5.2. This commit adds a try-except block for the AttributeError that is raised. This should keep the decoding intact for python2 while silently dropping the error in python3

fixes sharat87#32
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.

python3 AttributeError: 'str' object has no attribute 'decode'

1 participant