Skip to content

Commit

Permalink
Flush username prompt when authenticating (#1409)
Browse files Browse the repository at this point in the history
  • Loading branch information
nelson-liu authored and percyliang committed Sep 21, 2019
1 parent 18610c5 commit 7251182
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions codalab/lib/codalab_manager.py
Original file line number Diff line number Diff line change
Expand Up @@ -491,6 +491,7 @@ def _cache_token(token_info, username=None):
print('Requesting access at %s' % cache_key)
if username is None:
sys.stdout.write('Username: ') # Use write to avoid extra space
sys.stdout.flush()
username = sys.stdin.readline().rstrip()
if password is None:
password = getpass.getpass()
Expand Down

0 comments on commit 7251182

Please sign in to comment.