diff options
author | Hugo <hugovk@users.noreply.github.com> | 2018-01-16 14:24:29 +0200 |
---|---|---|
committer | Hugo <hugovk@users.noreply.github.com> | 2018-01-16 14:24:29 +0200 |
commit | d5a7aed0debac7f08265b0f1bf745bfaadc6e719 (patch) | |
tree | f041e8a5512eda81bbc631fb9a8d629049cf7efe | |
parent | 71bdeed8b49390ff14fe8f0434fc8a1038d89128 (diff) | |
download | python-json-patch-d5a7aed0debac7f08265b0f1bf745bfaadc6e719.tar.gz |
Remove ununsed imports and variables
-rwxr-xr-x | bin/jsondiff | 1 | ||||
-rwxr-xr-x | ext_tests.py | 1 | ||||
-rw-r--r-- | jsonpatch.py | 2 | ||||
-rw-r--r-- | setup.py | 2 | ||||
-rwxr-xr-x | tests.py | 2 |
5 files changed, 1 insertions, 7 deletions
diff --git a/bin/jsondiff b/bin/jsondiff index 54b4a61..b79188b 100755 --- a/bin/jsondiff +++ b/bin/jsondiff @@ -4,7 +4,6 @@ from __future__ import print_function import sys -import os.path import json import jsonpatch import argparse diff --git a/ext_tests.py b/ext_tests.py index 05576c6..2770c8e 100755 --- a/ext_tests.py +++ b/ext_tests.py @@ -34,7 +34,6 @@ """ Script to run external tests, eg from https://github.com/json-patch/json-patch-tests """ -from functools import partial import doctest import unittest import jsonpatch diff --git a/jsonpatch.py b/jsonpatch.py index 422812d..48dc2f8 100644 --- a/jsonpatch.py +++ b/jsonpatch.py @@ -37,8 +37,6 @@ from __future__ import unicode_literals import collections import copy import functools -import inspect -import itertools import json import sys @@ -1,10 +1,8 @@ #!/usr/bin/env python # -*- coding: utf-8 -*- -import sys import io import re -import warnings try: from setuptools import setup has_setuptools = True @@ -366,7 +366,7 @@ class MakePatchTestCase(unittest.TestCase): src = [8, 7, 2, 1, 0, 9, 4, 3, 5, 6] dest = [7, 2, 1, 0, 9, 4, 3, 6, 5, 8] - patch = jsonpatch.make_patch(src, dest) + jsonpatch.make_patch(src, dest) def test_issue76(self): """ Make sure op:remove does not include a 'value' field """ |