diff --git a/.travis.yml b/.travis.yml index bd9a8a3..f67ebbe 100644 --- a/.travis.yml +++ b/.travis.yml @@ -1,8 +1,6 @@ language: python python: -- '2.6' - '2.7' -- '3.3' - '3.4' - '3.5' - '3.6' diff --git a/doc/index.rst b/doc/index.rst index dbdf2c6..53b1dea 100644 --- a/doc/index.rst +++ b/doc/index.rst @@ -7,7 +7,7 @@ python-json-pointer =================== *python-json-pointer* is a Python library for resolving JSON pointers (`RFC -6901 `_). Python 2.6, 2.7, 3.2, 3.3 +6901 `_). Python 2.7, 3.4+ and PyPy are supported. **Contents** diff --git a/jsonpointer.py b/jsonpointer.py index 285fc0c..a844729 100644 --- a/jsonpointer.py +++ b/jsonpointer.py @@ -174,7 +174,7 @@ def __init__(self, pointer): # validate escapes invalid_escape = self._RE_INVALID_ESCAPE.search(pointer) if invalid_escape: - raise JsonPointerException('Found invalid escape {0}'.format( + raise JsonPointerException('Found invalid escape {}'.format( invalid_escape.group())) parts = pointer.split('/') diff --git a/setup.py b/setup.py index f5e850c..21660f5 100644 --- a/setup.py +++ b/setup.py @@ -42,10 +42,8 @@ 'Operating System :: OS Independent', 'Programming Language :: Python', 'Programming Language :: Python :: 2', - 'Programming Language :: Python :: 2.6', 'Programming Language :: Python :: 2.7', 'Programming Language :: Python :: 3', - 'Programming Language :: Python :: 3.3', 'Programming Language :: Python :: 3.4', 'Programming Language :: Python :: 3.5', 'Programming Language :: Python :: 3.6', @@ -66,4 +64,5 @@ py_modules=MODULES, scripts=['bin/jsonpointer'], classifiers=CLASSIFIERS, + python_requires='>=2.7, !=3.0.*, !=3.1.*, !=3.2.*, !=3.3.*', )