diff options
author | David Pursehouse <david.pursehouse@sonymobile.com> | 2012-11-14 11:36:51 +0900 |
---|---|---|
committer | David Pursehouse <david.pursehouse@sonymobile.com> | 2012-11-14 11:38:57 +0900 |
commit | c1b86a232383748811c6faf17f364e63e10f7dd4 (patch) | |
tree | 8f28c8e8a922ffd4165f48a1988500070936bd39 /main.py | |
parent | 98ffba1401056e2d88d3f3898b6fbf5d7d3931a4 (diff) | |
download | git-repo-c1b86a232383748811c6faf17f364e63e10f7dd4.tar.gz |
Fix inconsistent indentation
The repo coding style is to indent at 2 characters, but there are
many places where this is not followed.
Enable pylint warning "W0311: Bad indentation" and make sure all
indentation is at multiples of 2 characters.
Change-Id: I68f0f64470789ce2429ab11104d15d380a63e6a8
Diffstat (limited to 'main.py')
-rwxr-xr-x | main.py | 22 |
1 files changed, 11 insertions, 11 deletions
@@ -275,17 +275,17 @@ class _UserAgentHandler(urllib.request.BaseHandler): | |||
275 | return req | 275 | return req |
276 | 276 | ||
277 | def _AddPasswordFromUserInput(handler, msg, req): | 277 | def _AddPasswordFromUserInput(handler, msg, req): |
278 | # If repo could not find auth info from netrc, try to get it from user input | 278 | # If repo could not find auth info from netrc, try to get it from user input |
279 | url = req.get_full_url() | 279 | url = req.get_full_url() |
280 | user, password = handler.passwd.find_user_password(None, url) | 280 | user, password = handler.passwd.find_user_password(None, url) |
281 | if user is None: | 281 | if user is None: |
282 | print(msg) | 282 | print(msg) |
283 | try: | 283 | try: |
284 | user = raw_input('User: ') | 284 | user = raw_input('User: ') |
285 | password = getpass.getpass() | 285 | password = getpass.getpass() |
286 | except KeyboardInterrupt: | 286 | except KeyboardInterrupt: |
287 | return | 287 | return |
288 | handler.passwd.add_password(None, url, user, password) | 288 | handler.passwd.add_password(None, url, user, password) |
289 | 289 | ||
290 | class _BasicAuthHandler(urllib.request.HTTPBasicAuthHandler): | 290 | class _BasicAuthHandler(urllib.request.HTTPBasicAuthHandler): |
291 | def http_error_401(self, req, fp, code, msg, headers): | 291 | def http_error_401(self, req, fp, code, msg, headers): |