File tree Expand file tree Collapse file tree 1 file changed +6
-1
lines changed
Expand file tree Collapse file tree 1 file changed +6
-1
lines changed Original file line number Diff line number Diff line change 2424
2525try :
2626 from StringIO import StringIO
27+ PY3 = False
2728except ImportError : # py3
2829 from io import StringIO
30+ PY3 = True
2931try :
3032 import urllib2
3133except ImportError : # py3
@@ -330,7 +332,10 @@ def _get_issues():
330332 import getpass
331333 from github3 import login
332334 milestone = re .split ('[ab-]' , VERSION )[0 ]
333- username = raw_input ('Enter GitHub username for downloading issues: ' )
335+ if not PY3 :
336+ username = raw_input ('Enter GitHub username for downloading issues: ' )
337+ else :
338+ username = input ('Enter GitHub username for downloading issues: ' )
334339 password = getpass .getpass (
335340 'Github password for {user}: ' .format (user = username ))
336341 gh = login (username , password = password )
You can’t perform that action at this time.
0 commit comments