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
b678ce5a
Commit
b678ce5a
authored
May 18, 2006
by
Neal Norwitz
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Little cleanup
parent
fad65594
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
4 deletions
+4
-4
Lib/cookielib.py
Lib/cookielib.py
+2
-2
Lib/urllib2.py
Lib/urllib2.py
+2
-2
No files found.
Lib/cookielib.py
View file @
b678ce5a
...
...
@@ -36,13 +36,13 @@ except ImportError:
import
httplib
# only for the default HTTP port
from
calendar
import
timegm
debug
=
0
# set to t
rue to enable debugging via the logging module
debug
=
False
# set to T
rue to enable debugging via the logging module
logger
=
None
def
_debug
(
*
args
):
global
logger
if
not
debug
:
return
global
logger
if
not
logger
:
import
logging
logger
=
logging
.
getLogger
(
"cookielib"
)
...
...
Lib/urllib2.py
View file @
b678ce5a
...
...
@@ -165,7 +165,7 @@ class GopherError(URLError):
pass
# copied from cookielib.py
cut_port_re
=
re
.
compile
(
r":\
d+$
")
_
cut_port_re
=
re
.
compile
(
r":\
d+$
")
def request_host(request):
"""Return request-host, as defined by RFC 2965.
...
...
@@ -179,7 +179,7 @@ def request_host(request):
host = request.get_header("
Host
", "")
# remove port, if present
host = cut_port_re.sub("", host, 1)
host =
_
cut_port_re.sub("", host, 1)
return host.lower()
class Request:
...
...
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