Commits

Senthil Kumaran  committed cde2687

Reverting the change made in r78434

  • Participants
  • Parent commits 4fa96a9
  • Branches 3.1

Comments (0)

Files changed (2)

File Lib/test/test_urllib2.py

         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/",

File Lib/urllib/request.py

     # 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):