Skip to content

Commit 27f5660

Browse files
committed
Remove unused imports for 2.6
Both simplejson and OrderedDict aren't used.
1 parent a7e9f9f commit 27f5660

File tree

2 files changed

+0
-25
lines changed

2 files changed

+0
-25
lines changed

jmespath/compat.py

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -54,11 +54,3 @@ def get_methods(cls):
5454
for name, method in inspect.getmembers(cls,
5555
predicate=inspect.isfunction):
5656
yield name, method
57-
58-
59-
if sys.version_info[:2] == (2, 6):
60-
from ordereddict import OrderedDict
61-
import simplejson as json
62-
else:
63-
from collections import OrderedDict
64-
import json

setup.py

Lines changed: 0 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -7,22 +7,6 @@
77
from setuptools import setup, find_packages
88

99

10-
requires = []
11-
12-
13-
if sys.version_info[:2] == (2, 6):
14-
# For python2.6 we have a few other dependencies.
15-
# First we need an ordered dictionary so we use the
16-
# 2.6 backport.
17-
requires.append('ordereddict==1.1')
18-
# Then we need simplejson. This is because we need
19-
# a json version that allows us to specify we want to
20-
# use an ordereddict instead of a normal dict for the
21-
# JSON objects. The 2.7 json module has this. For 2.6
22-
# we need simplejson.
23-
requires.append('simplejson==3.3.0')
24-
25-
2610
setup(
2711
name='jmespath',
2812
version='0.7.0',
@@ -33,7 +17,6 @@
3317
url='https://github.com/jmespath/jmespath.py',
3418
scripts=['bin/jp.py'],
3519
packages=find_packages(exclude=['tests']),
36-
install_requires=requires,
3720
classifiers=(
3821
'Development Status :: 5 - Production/Stable',
3922
'Intended Audience :: Developers',

0 commit comments

Comments
 (0)