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
57de4c45
Commit
57de4c45
authored
Mar 07, 2010
by
Senthil Kumaran
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Reverting the changes made in r78433.
parent
ff80b17b
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
0 additions
and
4 deletions
+0
-4
Lib/test/test_urllib2.py
Lib/test/test_urllib2.py
+0
-1
Lib/urllib/request.py
Lib/urllib/request.py
+0
-3
No files found.
Lib/test/test_urllib2.py
View file @
57de4c45
...
...
@@ -1220,7 +1220,6 @@ class RequestTests(unittest.TestCase):
self
.
get
.
add_data
(
"spam"
)
self
.
assertTrue
(
self
.
get
.
has_data
())
self
.
assertEqual
(
"POST"
,
self
.
get
.
get_method
())
self
.
assertRaises
(
TypeError
,
self
.
get
.
add_data
,
"more spam"
)
def
test_get_full_url
(
self
):
self
.
assertEqual
(
"http://www.python.org/~jeremy/"
,
...
...
Lib/urllib/request.py
View file @
57de4c45
...
...
@@ -192,9 +192,6 @@ class Request:
# Begin deprecated methods
def add_data(self, data):
if self.has_data():
raise TypeError("
Request
Obj
already
contains
data
:
%
s
" %
self.data)
self.data = data
def has_data(self):
...
...
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