Skip to content

Commit ea84f13

Browse files
authored
json import
1 parent b27be95 commit ea84f13

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

shopify/api_version.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
import re
2+
import json
23
from six.moves.urllib import request
34

45

@@ -27,7 +28,7 @@ def define_version(cls, version):
2728
def define_known_versions(cls):
2829
req = request.urlopen("https://app.shopify.com/services/apis.json")
2930
data = json.loads(req.read().decode("utf-8"))
30-
for api in j['apis']:
31+
for api in data['apis']:
3132
if api['handle'] == 'admin':
3233
for release in api['versions']:
3334
if release['handle'] == 'unstable':

0 commit comments

Comments
 (0)