Skip to content

Commit 4757628

Browse files
committed
update conversion tools imports
1 parent 6759991 commit 4757628

File tree

7 files changed

+14
-14
lines changed

7 files changed

+14
-14
lines changed

doc_src/quick_start.rst

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -196,8 +196,8 @@ Get JSON and Dictionary Response
196196

197197
.. code-block:: python
198198
199-
from fedex.tools.response_tools import sobject_to_dict
200-
from fedex.tools.response_tools import sobject_to_json
199+
from fedex.tools.conversion import sobject_to_dict
200+
from fedex.tools.conversion import sobject_to_json
201201
response_dict = sobject_to_dict(shipment.response)
202202
response_json = sobject_to_json(shipment.response)
203203

examples/address_validation.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -68,11 +68,11 @@ class can handle up to 100 addresses for validation.
6868

6969
# This will convert the response to a python dict object. To
7070
# make it easier to work with.
71-
# from fedex.tools.response_tools import basic_sobject_to_dict
71+
# from fedex.tools.conversion import basic_sobject_to_dict
7272
# print(basic_sobject_to_dict(avs_request.response))
7373

7474
# This will dump the response data dict to json.
75-
# from fedex.tools.response_tools import sobject_to_json
75+
# from fedex.tools.conversion import sobject_to_json
7676
# print(sobject_to_json(avs_request.response))
7777

7878
# Overall end result of the query

examples/create_freight_shipment.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -150,13 +150,13 @@
150150

151151
# This will convert the response to a python dict object. To
152152
# make it easier to work with. Also see basic_sobject_to_dict, it's faster but lacks options.
153-
# from fedex.tools.response_tools import sobject_to_dict
153+
# from fedex.tools.conversion import sobject_to_dict
154154
# response_dict = sobject_to_dict(shipment.response)
155155
# response_dict['CompletedShipmentDetail']['ShipmentDocuments'][0]['Parts'][0]['Image'] = ''
156156
# print(response_dict) # Image is empty string for display purposes.
157157

158158
# This will dump the response data dict to json.
159-
# from fedex.tools.response_tools import sobject_to_json
159+
# from fedex.tools.conversion import sobject_to_json
160160
# print(sobject_to_json(shipment.response))
161161

162162
# Here is the overall end result of the query.

examples/create_shipment.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -179,13 +179,13 @@
179179

180180
# This will convert the response to a python dict object. To
181181
# make it easier to work with. Also see basic_sobject_to_dict, it's faster but lacks options.
182-
# from fedex.tools.response_tools import sobject_to_dict
182+
# from fedex.tools.conversion import sobject_to_dict
183183
# response_dict = sobject_to_dict(shipment.response)
184184
# response_dict['CompletedShipmentDetail']['CompletedPackageDetails'][0]['Label']['Parts'][0]['Image'] = ''
185185
# print(response_dict) # Image is empty string for display purposes.
186186

187187
# This will dump the response data dict to json.
188-
# from fedex.tools.response_tools import sobject_to_json
188+
# from fedex.tools.conversion import sobject_to_json
189189
# print(sobject_to_json(shipment.response))
190190

191191
# Here is the overall end result of the query.

examples/delete_shipment.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -43,11 +43,11 @@
4343

4444
# This will convert the response to a python dict object. To
4545
# make it easier to work with.
46-
# from fedex.tools.response_tools import basic_sobject_to_dict
46+
# from fedex.tools.conversion import basic_sobject_to_dict
4747
# print(basic_sobject_to_dict(del_request.response))
4848

4949
# This will dump the response data dict to json.
50-
# from fedex.tools.response_tools import sobject_to_json
50+
# from fedex.tools.conversion import sobject_to_json
5151
# print(sobject_to_json(del_request.response))
5252

5353
# Here is the overall end result of the query.

examples/freight_rate_request.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -118,11 +118,11 @@
118118

119119
# This will convert the response to a python dict object. To
120120
# make it easier to work with.
121-
# from fedex.tools.response_tools import basic_sobject_to_dict
121+
# from fedex.tools.conversion import basic_sobject_to_dict
122122
# print(basic_sobject_to_dict(rate_request.response))
123123

124124
# This will dump the response data dict to json.
125-
# from fedex.tools.response_tools import sobject_to_json
125+
# from fedex.tools.conversion import sobject_to_json
126126
# print(sobject_to_json(rate_request.response))
127127

128128
# Here is the overall end result of the query.

examples/location_request.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -86,11 +86,11 @@
8686

8787
# This will convert the response to a python dict object. To
8888
# make it easier to work with.
89-
# from fedex.tools.response_tools import basic_sobject_to_dict
89+
# from fedex.tools.conversion import basic_sobject_to_dict
9090
# print(basic_sobject_to_dict(location_request.response))
9191

9292
# This will dump the response data dict to json.
93-
# from fedex.tools.response_tools import sobject_to_json
93+
# from fedex.tools.conversion import sobject_to_json
9494
# print(sobject_to_json(location_request.response))
9595

9696
# Here is the overall end result of the query.

0 commit comments

Comments
 (0)