From 127b8805779cffc5a9c2834c27b92011ef59574b Mon Sep 17 00:00:00 2001 From: Miroslav Stampar Date: Thu, 27 Dec 2012 15:14:40 +0100 Subject: [PATCH] Minor update --- .gitattributes | 4 +++- lib/request/basicauthhandler.py | 10 +++++----- 2 files changed, 8 insertions(+), 6 deletions(-) diff --git a/.gitattributes b/.gitattributes index 4e2383819..8b6e58fe0 100644 --- a/.gitattributes +++ b/.gitattributes @@ -1,4 +1,4 @@ -* text eol=lf +*.py text eol=lf *_ binary *.dll binary @@ -9,3 +9,5 @@ *.x32 binary *.x64 binary *.exe binary +*.sln binary +*.vcproj binary diff --git a/lib/request/basicauthhandler.py b/lib/request/basicauthhandler.py index fd68b3853..a32f5e3c2 100644 --- a/lib/request/basicauthhandler.py +++ b/lib/request/basicauthhandler.py @@ -29,11 +29,11 @@ class SmartHTTPBasicAuthHandler(urllib2.HTTPBasicAuthHandler): self.retried_req.add(hash(req)) self.retried_count = 0 else: - if self.retried_count > 5: - raise urllib2.HTTPError(req.get_full_url(), 401, "basic auth failed", - headers, None) - else: - self.retried_count += 1 + if self.retried_count > 5: + raise urllib2.HTTPError(req.get_full_url(), 401, "basic auth failed", + headers, None) + else: + self.retried_count += 1 return urllib2.HTTPBasicAuthHandler.http_error_auth_reqed( self, auth_header, host, req, headers)