File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 44pbr != 2.1.0 ,>= 2.0.0 # Apache-2.0
55PrettyTable >= 0.7.2 # BSD
66requests >= 2.14.2 # Apache-2.0
7- simplejson >= 3.5.1 # MIT
87oslo.i18n >= 3.15.3 # Apache-2.0
98oslo.utils >= 3.33.0 # Apache-2.0
109keystoneauth1 >= 3.4.0 # Apache-2.0
Original file line number Diff line number Diff line change 2525# E0202: An attribute inherited from %s hide this method
2626# pylint: disable=E0202
2727
28+ import json
2829import logging
2930import time
3031
31- try :
32- import simplejson as json
33- except ImportError :
34- import json
35-
3632import requests
3733
3834from oslo_utils import importutils
Original file line number Diff line number Diff line change 1919OpenStack Client interface. Handles the REST calls and responses.
2020"""
2121
22+ import json
2223import logging
2324
2425from keystoneauth1 import adapter
3536except ImportError :
3637 import time as sleep_lib
3738
38- try :
39- import json
40- except ImportError :
41- import simplejson as json
42-
4339osprofiler_web = importutils .try_import ("osprofiler.web" )
4440
4541
Original file line number Diff line number Diff line change 1414# under the License.
1515
1616import httplib2
17+ import json
1718import logging
1819import os
1920import sys
2021import time
2122
22- try :
23- import json
24- except ImportError :
25- import simplejson as json
26-
27-
2823from troveclient .compat import auth
2924from troveclient .compat import exceptions
3025
Original file line number Diff line number Diff line change 1212# under the License.
1313
1414import io
15+ import json
1516import re
1617import sys
1718from unittest import mock
2627from troveclient import exceptions
2728import troveclient .shell
2829
29- try :
30- import json
31- except ImportError :
32- import simplejson as json
33-
3430V2_URL = "http://no.where/v2.0"
3531V3_URL = "http://no.where/v3"
3632
Original file line number Diff line number Diff line change 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
1721import uuid
1822
19- import base64
2023from openstackclient .identity import common as identity_common
21- import os
2224from oslo_utils import encodeutils
2325from oslo_utils import uuidutils
2426import prettytable
25- import simplejson as json
26- import sys
2727
2828from troveclient .apiclient import exceptions
2929
Original file line number Diff line number Diff line change 1515# under the License.
1616
1717import argparse
18+ import json
1819import sys
1920import time
2021
2122from troveclient .i18n import _
2223
23- try :
24- import simplejson as json
25- except ImportError :
26- import json
27-
2824from troveclient import exceptions
2925from troveclient import utils
3026from troveclient .v1 import modules
You can’t perform that action at this time.
0 commit comments