summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHugo <hugovk@users.noreply.github.com>2018-01-16 14:24:29 +0200
committerHugo <hugovk@users.noreply.github.com>2018-01-16 14:24:29 +0200
commitd5a7aed0debac7f08265b0f1bf745bfaadc6e719 (patch)
treef041e8a5512eda81bbc631fb9a8d629049cf7efe
parent71bdeed8b49390ff14fe8f0434fc8a1038d89128 (diff)
downloadpython-json-patch-d5a7aed0debac7f08265b0f1bf745bfaadc6e719.tar.gz
Remove ununsed imports and variables
-rwxr-xr-xbin/jsondiff1
-rwxr-xr-xext_tests.py1
-rw-r--r--jsonpatch.py2
-rw-r--r--setup.py2
-rwxr-xr-xtests.py2
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
diff --git a/setup.py b/setup.py
index 471c433..1051ecc 100644
--- a/setup.py
+++ b/setup.py
@@ -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
diff --git a/tests.py b/tests.py
index 614d844..548d28b 100755
--- a/tests.py
+++ b/tests.py
@@ -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 """