Skip to content

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

@fengor

Description

@fengor

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
$
`

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions