From c1b86a232383748811c6faf17f364e63e10f7dd4 Mon Sep 17 00:00:00 2001 From: David Pursehouse Date: Wed, 14 Nov 2012 11:36:51 +0900 Subject: 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 --- main.py | 22 +++++++++++----------- 1 file changed, 11 insertions(+), 11 deletions(-) (limited to 'main.py') diff --git a/main.py b/main.py index 87e9c349..b5259870 100755 --- a/main.py +++ b/main.py @@ -275,17 +275,17 @@ class _UserAgentHandler(urllib.request.BaseHandler): return req def _AddPasswordFromUserInput(handler, msg, req): - # If repo could not find auth info from netrc, try to get it from user input - url = req.get_full_url() - user, password = handler.passwd.find_user_password(None, url) - if user is None: - print(msg) - try: - user = raw_input('User: ') - password = getpass.getpass() - except KeyboardInterrupt: - return - handler.passwd.add_password(None, url, user, password) + # If repo could not find auth info from netrc, try to get it from user input + url = req.get_full_url() + user, password = handler.passwd.find_user_password(None, url) + if user is None: + print(msg) + try: + user = raw_input('User: ') + password = getpass.getpass() + except KeyboardInterrupt: + return + handler.passwd.add_password(None, url, user, password) class _BasicAuthHandler(urllib.request.HTTPBasicAuthHandler): def http_error_401(self, req, fp, code, msg, headers): -- cgit v1.2.3-54-g00ecf