Skip to content

Commit 5484f3c

Browse files
committed
remove more Python2 syntax
1 parent e3ca97f commit 5484f3c

File tree

5 files changed

+7
-7
lines changed

5 files changed

+7
-7
lines changed

shopify/api_version.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ class VersionNotFoundError(Exception):
99
pass
1010

1111

12-
class ApiVersion(object):
12+
class ApiVersion:
1313
versions = {}
1414

1515
@classmethod

shopify/collection.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -125,7 +125,7 @@ def __len__(self):
125125
return count + super(PaginatedCollection, self).__len__()
126126

127127

128-
class PaginatedIterator(object):
128+
class PaginatedIterator:
129129
"""
130130
This class implements an iterator over paginated collections which aims to
131131
be more memory-efficient by not keeping more than one page in memory at a

shopify/limits.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import shopify
22

33

4-
class Limits(object):
4+
class Limits:
55
"""
66
API Calls Limit
77
https://help.shopify.com/en/api/getting-started/api-call-limit

shopify/mixins.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,15 @@
11
import shopify.resources
22

33

4-
class Countable(object):
4+
class Countable:
55
@classmethod
66
def count(cls, _options=None, **kwargs):
77
if _options is None:
88
_options = kwargs
99
return int(cls.get("count", **_options))
1010

1111

12-
class Metafields(object):
12+
class Metafields:
1313
def metafields(self, _options=None, **kwargs):
1414
if _options is None:
1515
_options = kwargs
@@ -29,6 +29,6 @@ def add_metafield(self, metafield):
2929
return metafield
3030

3131

32-
class Events(object):
32+
class Events:
3333
def events(self):
3434
return shopify.resources.Event.find(resource=self.__class__.plural, resource_id=self.id)

shopify/session.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ class ValidationException(Exception):
1919
pass
2020

2121

22-
class Session(object):
22+
class Session:
2323
api_key = None
2424
secret = None
2525
protocol = "https"

0 commit comments

Comments
 (0)