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