Skip to content

Commit 65b99bd

Browse files
Zuulopenstack-gerrit
authored andcommitted
Merge "Drop unused simplejson"
2 parents 77fcf0d + 00cdc83 commit 65b99bd

7 files changed

Lines changed: 9 additions & 31 deletions

File tree

requirements.txt

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,6 @@
44
pbr!=2.1.0,>=2.0.0 # Apache-2.0
55
PrettyTable>=0.7.2 # BSD
66
requests>=2.14.2 # Apache-2.0
7-
simplejson>=3.5.1 # MIT
87
oslo.i18n>=3.15.3 # Apache-2.0
98
oslo.utils>=3.33.0 # Apache-2.0
109
keystoneauth1>=3.4.0 # Apache-2.0

troveclient/apiclient/client.py

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -25,14 +25,10 @@
2525
# E0202: An attribute inherited from %s hide this method
2626
# pylint: disable=E0202
2727

28+
import json
2829
import logging
2930
import time
3031

31-
try:
32-
import simplejson as json
33-
except ImportError:
34-
import json
35-
3632
import requests
3733

3834
from oslo_utils import importutils

troveclient/client.py

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@
1919
OpenStack Client interface. Handles the REST calls and responses.
2020
"""
2121

22+
import json
2223
import logging
2324

2425
from keystoneauth1 import adapter
@@ -35,11 +36,6 @@
3536
except ImportError:
3637
import time as sleep_lib
3738

38-
try:
39-
import json
40-
except ImportError:
41-
import simplejson as json
42-
4339
osprofiler_web = importutils.try_import("osprofiler.web")
4440

4541

troveclient/compat/client.py

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -14,17 +14,12 @@
1414
# under the License.
1515

1616
import httplib2
17+
import json
1718
import logging
1819
import os
1920
import sys
2021
import time
2122

22-
try:
23-
import json
24-
except ImportError:
25-
import simplejson as json
26-
27-
2823
from troveclient.compat import auth
2924
from troveclient.compat import exceptions
3025

troveclient/tests/test_shell.py

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@
1212
# under the License.
1313

1414
import io
15+
import json
1516
import re
1617
import sys
1718
from unittest import mock
@@ -26,11 +27,6 @@
2627
from troveclient import exceptions
2728
import troveclient.shell
2829

29-
try:
30-
import json
31-
except ImportError:
32-
import simplejson as json
33-
3430
V2_URL = "http://no.where/v2.0"
3531
V3_URL = "http://no.where/v3"
3632

troveclient/utils.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -14,16 +14,16 @@
1414
# License for the specific language governing permissions and limitations
1515
# under the License.
1616

17+
import base64
18+
import json
19+
import os
20+
import sys
1721
import uuid
1822

19-
import base64
2023
from openstackclient.identity import common as identity_common
21-
import os
2224
from oslo_utils import encodeutils
2325
from oslo_utils import uuidutils
2426
import prettytable
25-
import simplejson as json
26-
import sys
2727

2828
from troveclient.apiclient import exceptions
2929

troveclient/v1/shell.py

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -15,16 +15,12 @@
1515
# under the License.
1616

1717
import argparse
18+
import json
1819
import sys
1920
import time
2021

2122
from troveclient.i18n import _
2223

23-
try:
24-
import simplejson as json
25-
except ImportError:
26-
import json
27-
2824
from troveclient import exceptions
2925
from troveclient import utils
3026
from troveclient.v1 import modules

0 commit comments

Comments
 (0)