Skip to content

Commit

Permalink
Factor out need for six.
Browse files Browse the repository at this point in the history
This causes a slight performance penatly for every query evaluation
in older versions of python, but this seems acceptable.
  • Loading branch information
thomasw committed Sep 8, 2015
1 parent 1583667 commit fe7eeb7
Show file tree
Hide file tree
Showing 3 changed files with 1 addition and 8 deletions.
4 changes: 1 addition & 3 deletions querylist/querylist.py
@@ -1,7 +1,5 @@
from __future__ import absolute_import

from six import iteritems

from .betterdict import BetterDict
from .fieldlookup import field_lookup

Expand Down Expand Up @@ -76,7 +74,7 @@ def _check_element(self, lookup_strings, instance):
object.
"""
for q, val in iteritems(lookup_strings):
for q, val in lookup_strings.items():
if not field_lookup(instance, q, val, True):
return False

Expand Down
2 changes: 0 additions & 2 deletions requirements.txt
@@ -1,5 +1,3 @@
six==1.9.0

# Testing requirements.
coveralls==0.4.1
flake8==2.3.0
Expand Down
3 changes: 0 additions & 3 deletions setup.py
Expand Up @@ -28,9 +28,6 @@
'also provides BetterDict, a dot lookup/assignment capable '
'wrapper for dicts that is 100% backwards compatible.',
packages=find_packages(),
install_requires=[
'six>=1.9.0,<1.10',
],
tests_require=[
'nose>=1.3.6,<1.4',
'spec>=1.2.2,<1.3',
Expand Down

0 comments on commit fe7eeb7

Please sign in to comment.