Skip to content

Commit 95bce34

Browse files
committed
Convert old style classes to new style
1 parent f15c424 commit 95bce34

File tree

14 files changed

+15
-15
lines changed

14 files changed

+15
-15
lines changed

imgurpython/client.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@
1919
API_URL = 'https://api.imgur.com/'
2020

2121

22-
class AuthWrapper:
22+
class AuthWrapper(object):
2323
def __init__(self, access_token, refresh_token, client_id, client_secret):
2424
self.current_access_token = access_token
2525

@@ -55,7 +55,7 @@ def refresh(self):
5555
self.current_access_token = response_data['access_token']
5656

5757

58-
class ImgurClient:
58+
class ImgurClient(object):
5959
allowed_album_fields = {
6060
'ids', 'title', 'description', 'privacy', 'layout', 'cover'
6161
}

imgurpython/imgur/models/account.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
class Account:
1+
class Account(object):
22

33
def __init__(self, account_id, url, bio, reputation, created, pro_expiration):
44
self.id = account_id

imgurpython/imgur/models/account_settings.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
class AccountSettings:
1+
class AccountSettings(object):
22

33
def __init__(self, email, high_quality, public_images, album_privacy, pro_expiration, accepted_gallery_terms,
44
active_emails, messaging_enabled, blocked_users):

imgurpython/imgur/models/album.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
class Album:
1+
class Album(object):
22

33
# See documentation at https://api.imgur.com/ for available fields
44
def __init__(self, *initial_data, **kwargs):

imgurpython/imgur/models/comment.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
class Comment:
1+
class Comment(object):
22

33
# See documentation at https://api.imgur.com/ for available fields
44
def __init__(self, *initial_data, **kwargs):

imgurpython/imgur/models/conversation.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
from .message import Message
22

3-
class Conversation:
3+
class Conversation(object):
44

55
def __init__(self, conversation_id, last_message_preview, datetime, with_account_id, with_account, message_count, messages=None,
66
done=None, page=None):

imgurpython/imgur/models/custom_gallery.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
from .gallery_image import GalleryImage
33

44

5-
class CustomGallery:
5+
class CustomGallery(object):
66

77
def __init__(self, custom_gallery_id, name, datetime, account_url, link, tags, item_count=None, items=None):
88
self.id = custom_gallery_id

imgurpython/imgur/models/gallery_album.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
class GalleryAlbum:
1+
class GalleryAlbum(object):
22

33
# See documentation at https://api.imgur.com/ for available fields
44
def __init__(self, *initial_data, **kwargs):

imgurpython/imgur/models/gallery_image.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
class GalleryImage:
1+
class GalleryImage(object):
22

33
# See documentation at https://api.imgur.com/ for available fields
44
def __init__(self, *initial_data, **kwargs):

imgurpython/imgur/models/image.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
class Image:
1+
class Image(object):
22

33
# See documentation at https://api.imgur.com/ for available fields
44
def __init__(self, *initial_data, **kwargs):

0 commit comments

Comments
 (0)