Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1361)

Unified Diff: bin/cros_gsdcurl.py

Issue 3005055: Dropping useless comment. Using getuser which is more correct. (Closed) Base URL: ssh://git@chromiumos-git/crosutils.git
Patch Set: Created 10 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: bin/cros_gsdcurl.py
diff --git a/bin/cros_gsdcurl.py b/bin/cros_gsdcurl.py
index e046fe2795e84c20d90940d6f38c3e9606750f41..38bafb569ab27b7be7dfc0d48ce57b2aea656257 100755
--- a/bin/cros_gsdcurl.py
+++ b/bin/cros_gsdcurl.py
@@ -14,8 +14,7 @@ import urllib
def Authenticate():
- # Authenticate.
- default_username = os.environ.get('LOGNAME', '')
+ default_username = getpass.getuser()
username = os.environ.get('GSDCURL_USERNAME')
if username is None:
sys.stderr.write('Username [' + default_username + ']: ')
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698