[server/datafeed] drop URLLibResponseAdapter.info
authorJulien Cristau <julien.cristau@logilab.fr>
Wed, 14 Oct 2015 16:18:25 +0200
changeset 10805 de4403644b1c
parent 10804 ee113e1e03de
child 10806 bd98cd3b7869
[server/datafeed] drop URLLibResponseAdapter.info I don't know where it's used
server/sources/datafeed.py
server/test/unittest_datafeed.py
--- a/server/sources/datafeed.py	Mon Oct 19 14:29:06 2015 +0200
+++ b/server/sources/datafeed.py	Wed Oct 14 16:18:25 2015 +0200
@@ -558,9 +558,6 @@
     def getcode(self):
         return self.code
 
-    def info(self):
-        from mimetools import Message
-        return Message(BytesIO())
 
 # use a cookie enabled opener to use session cookie if any
 _OPENER = build_opener()
--- a/server/test/unittest_datafeed.py	Mon Oct 19 14:29:06 2015 +0200
+++ b/server/test/unittest_datafeed.py	Wed Oct 14 16:18:25 2015 +0200
@@ -16,7 +16,6 @@
 # You should have received a copy of the GNU Lesser General Public License along
 # with CubicWeb.  If not, see <http://www.gnu.org/licenses/>.
 
-import mimetools
 from datetime import timedelta
 from contextlib import contextmanager
 
@@ -140,7 +139,6 @@
                 value = parser.retrieve_url('a string')
                 self.assertEqual(200, value.getcode())
                 self.assertEqual('a string', value.geturl())
-                self.assertIsInstance(value.info(), mimetools.Message)
 
 
 class DataFeedConfigTC(CubicWebTC):