You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Running ti inside GIT Bash with python 3.5.2 raises the above mentioned error. Apparently the str object has no decode function since it is already considered decoded
brac010@ISS16661 MINGW64 /h/timekeeping
$ ti -h
Traceback (most recent call last):
File "H:/timekeeping/ti", line 434, in
main()
File "H:/timekeeping/ti", line 425, in main
fn, args = parse_args()
File "H:/timekeeping/ti", line 352, in parse_args
argv = [arg.decode('utf-8') for arg in argv]
File "H:/timekeeping/ti", line 352, in
argv = [arg.decode('utf-8') for arg in argv]
AttributeError: 'str' object has no attribute 'decode'
brac010@ISS16661 MINGW64 /h/timekeeping
$
`
The text was updated successfully, but these errors were encountered:
fengor
added a commit
to fengor/ti
that referenced
this issue
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
fixessharat87#32
Running ti inside GIT Bash with python 3.5.2 raises the above mentioned error. Apparently the str object has no decode function since it is already considered decoded
`brac010@ISS16661 MINGW64 /h/timekeeping
$ python --version
Python 3.5.2
brac010@ISS16661 MINGW64 /h/timekeeping
$ ti -h
Traceback (most recent call last):
File "H:/timekeeping/ti", line 434, in
main()
File "H:/timekeeping/ti", line 425, in main
fn, args = parse_args()
File "H:/timekeeping/ti", line 352, in parse_args
argv = [arg.decode('utf-8') for arg in argv]
File "H:/timekeeping/ti", line 352, in
argv = [arg.decode('utf-8') for arg in argv]
AttributeError: 'str' object has no attribute 'decode'
brac010@ISS16661 MINGW64 /h/timekeeping
$
`
The text was updated successfully, but these errors were encountered: