Skip to content

Commit 127b880

Browse files
committed
Minor update
1 parent 6ae4590 commit 127b880

File tree

2 files changed

+8
-6
lines changed

2 files changed

+8
-6
lines changed

.gitattributes

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
* text eol=lf
1+
*.py text eol=lf
22

33
*_ binary
44
*.dll binary
@@ -9,3 +9,5 @@
99
*.x32 binary
1010
*.x64 binary
1111
*.exe binary
12+
*.sln binary
13+
*.vcproj binary

lib/request/basicauthhandler.py

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -29,11 +29,11 @@ def http_error_auth_reqed(self, auth_header, host, req, headers):
2929
self.retried_req.add(hash(req))
3030
self.retried_count = 0
3131
else:
32-
if self.retried_count > 5:
33-
raise urllib2.HTTPError(req.get_full_url(), 401, "basic auth failed",
34-
headers, None)
35-
else:
36-
self.retried_count += 1
32+
if self.retried_count > 5:
33+
raise urllib2.HTTPError(req.get_full_url(), 401, "basic auth failed",
34+
headers, None)
35+
else:
36+
self.retried_count += 1
3737

3838
return urllib2.HTTPBasicAuthHandler.http_error_auth_reqed(
3939
self, auth_header, host, req, headers)

0 commit comments

Comments
 (0)