Fix dict_keys equality test for python 3.

This commit is contained in:
Ian Leith 2014-04-11 05:49:49 +01:00
parent 8bd5e7e612
commit 613df5c650

View File

@ -74,7 +74,7 @@ class _MediaType(object):
return 0
elif self.sub_type == '*':
return 1
elif not self.params or self.params.keys() == ['q']:
elif not self.params or list(self.params.keys()) == ['q']:
return 2
return 3