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
d8a46969
Commit
d8a46969
authored
Apr 03, 2013
by
R David Murray
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Use repr when printing unknown url type in urlopen.
parent
03b2a1ce
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
1 deletion
+1
-1
Lib/urllib/request.py
Lib/urllib/request.py
+1
-1
No files found.
Lib/urllib/request.py
View file @
d8a46969
...
@@ -281,7 +281,7 @@ class Request:
...
@@ -281,7 +281,7 @@ class Request:
def _parse(self):
def _parse(self):
self.type, rest = splittype(self.full_url)
self.type, rest = splittype(self.full_url)
if self.type is None:
if self.type is None:
raise ValueError("
unknown
url
type
:
%
s
" % self.full_url)
raise ValueError("
unknown
url
type
:
%
r
" % self.full_url)
self.host, self.selector = splithost(rest)
self.host, self.selector = splithost(rest)
if self.host:
if self.host:
self.host = unquote(self.host)
self.host = unquote(self.host)
...
...
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