diff --git a/json_store/__init__.py b/json_store/__init__.py index 83d28ee..bc9bef4 100644 --- a/json_store/__init__.py +++ b/json_store/__init__.py @@ -1,5 +1,3 @@ -from __future__ import absolute_import - from .json_store import JSONStore __version__ = "4.0" diff --git a/json_store/json_store.py b/json_store/json_store.py index 6d1f545..e955a94 100644 --- a/json_store/json_store.py +++ b/json_store/json_store.py @@ -4,22 +4,11 @@ This is for small stores. Everything is in memory and sync() always writes everything out to disk. """ -from __future__ import absolute_import -from __future__ import unicode_literals - +import json import os +from collections.abc import MutableMapping from tempfile import NamedTemporaryFile -try: - import simplejson as json -except ImportError: - import json - -try: - from collections.abc import MutableMapping -except ImportError: - from collections import MutableMapping - __all__ = ["JSONStore"] MODE_600 = int("600", 8) diff --git a/json_store/shelve2json.py b/json_store/shelve2json.py index 5ec1c53..99b9796 100644 --- a/json_store/shelve2json.py +++ b/json_store/shelve2json.py @@ -1,7 +1,5 @@ #! /usr/bin/env python # encoding: utf-8 -from __future__ import absolute_import, print_function, unicode_literals - """Naïvely create a json_store file from a shelve DB.""" import os diff --git a/tests/test_json_store.py b/tests/test_json_store.py index 03b1144..be6a67a 100644 --- a/tests/test_json_store.py +++ b/tests/test_json_store.py @@ -1,17 +1,11 @@ # encoding: utf-8 -from __future__ import absolute_import, unicode_literals - +import json import os import platform import shutil import stat from tempfile import NamedTemporaryFile -try: - import simplejson as json -except ImportError: - import json - import json_store