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
$ ./generate-bash-completion
Traceback (most recent call last):
File "git-hub", line 2156, in <module>
main()
File "git-hub", line 2121, in main
config = Config()
File "git-hub", line 316, in __init__
self.username = git_config('username', getpass.getuser())
File "git-hub", line 272, in git_config
return git(*cmd)
File "git-hub", line 218, in git
raise GitError(proc.returncode, args, stderr.rstrip('\n'))
TypeError: a bytes-like object is required, not 'str'
String handling is a mess unfortunately. This really needs to use a lot of from __future__ import ... to be more python3 compatible. At this point I'm not sure if it's worth adding little hacks, but OTOH if this small fix makes it work for you with 2to3, it can be applied, str(stderr) shouldn't change anything in py2.
I got this:
At that point,
stderr
isb''
.To fix it, I could do this:
If my fix is correct, maybe worth adding to the README?
The text was updated successfully, but these errors were encountered: