Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
C
cpython
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
cpython
Commits
d5214b04
Commit
d5214b04
authored
Nov 08, 2001
by
Fred Drake
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Clean up one comment, fix typos in others.
parent
4962fc8f
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
7 deletions
+7
-7
Lib/urllib2.py
Lib/urllib2.py
+7
-7
No files found.
Lib/urllib2.py
View file @
d5214b04
...
...
@@ -72,11 +72,11 @@ f = urllib2.urlopen('http://www.python.org/')
# XXX issues:
# If an authentication error handler that tries to perform
# authentication for some reason but fails, how should the error be
# signalled? The client needs to know the HTTP error code. But if
# the handler knows that the problem was, e.g., that it didn't know
# that hash algo that requested in the challenge, it would be good to
# pass that information along to the client, too.
# authentication for some reason but fails, how should the error be
# signalled? The client needs to know the HTTP error code. But if
# the handler knows that the problem was, e.g., that it didn't know
# that hash algo that requested in the challenge, it would be good to
# pass that information along to the client, too.
# XXX to do:
# name!
...
...
@@ -328,8 +328,8 @@ class OpenerDirector:
def
error
(
self
,
proto
,
*
args
):
if
proto
in
[
'http'
,
'https'
]:
# XXX http[s] protocols are special
cased
dict
=
self
.
handle_error
[
'http'
]
# https is not different th
e
n http
# XXX http[s] protocols are special
-
cased
dict
=
self
.
handle_error
[
'http'
]
# https is not different th
a
n http
proto
=
args
[
2
]
# YUCK!
meth_name
=
'http_error_%d'
%
proto
http_err
=
1
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment