Skip to content
This repository was archived by the owner on Oct 4, 2023. It is now read-only.
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions imgurpython/client.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
API_URL = 'https://api.imgur.com/'


class AuthWrapper:
class AuthWrapper(object):
def __init__(self, access_token, refresh_token, client_id, client_secret):
self.current_access_token = access_token

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


class ImgurClient:
class ImgurClient(object):
allowed_album_fields = {
'ids', 'title', 'description', 'privacy', 'layout', 'cover'
}
Expand Down
2 changes: 1 addition & 1 deletion imgurpython/imgur/models/account.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
class Account:
class Account(object):

def __init__(self, account_id, url, bio, reputation, created, pro_expiration):
self.id = account_id
Expand Down
2 changes: 1 addition & 1 deletion imgurpython/imgur/models/account_settings.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
class AccountSettings:
class AccountSettings(object):

def __init__(self, email, high_quality, public_images, album_privacy, pro_expiration, accepted_gallery_terms,
active_emails, messaging_enabled, blocked_users):
Expand Down
2 changes: 1 addition & 1 deletion imgurpython/imgur/models/album.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
class Album:
class Album(object):

# See documentation at https://api.imgur.com/ for available fields
def __init__(self, *initial_data, **kwargs):
Expand Down
2 changes: 1 addition & 1 deletion imgurpython/imgur/models/comment.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
class Comment:
class Comment(object):

# See documentation at https://api.imgur.com/ for available fields
def __init__(self, *initial_data, **kwargs):
Expand Down
2 changes: 1 addition & 1 deletion imgurpython/imgur/models/conversation.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
from .message import Message

class Conversation:
class Conversation(object):

def __init__(self, conversation_id, last_message_preview, datetime, with_account_id, with_account, message_count, messages=None,
done=None, page=None):
Expand Down
2 changes: 1 addition & 1 deletion imgurpython/imgur/models/custom_gallery.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
from .gallery_image import GalleryImage


class CustomGallery:
class CustomGallery(object):

def __init__(self, custom_gallery_id, name, datetime, account_url, link, tags, item_count=None, items=None):
self.id = custom_gallery_id
Expand Down
2 changes: 1 addition & 1 deletion imgurpython/imgur/models/gallery_album.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
class GalleryAlbum:
class GalleryAlbum(object):

# See documentation at https://api.imgur.com/ for available fields
def __init__(self, *initial_data, **kwargs):
Expand Down
2 changes: 1 addition & 1 deletion imgurpython/imgur/models/gallery_image.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
class GalleryImage:
class GalleryImage(object):

# See documentation at https://api.imgur.com/ for available fields
def __init__(self, *initial_data, **kwargs):
Expand Down
2 changes: 1 addition & 1 deletion imgurpython/imgur/models/image.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
class Image:
class Image(object):

# See documentation at https://api.imgur.com/ for available fields
def __init__(self, *initial_data, **kwargs):
Expand Down
2 changes: 1 addition & 1 deletion imgurpython/imgur/models/message.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
class Message:
class Message(object):

def __init__(self, message_id, from_user, account_id, sender_id, body, conversation_id, datetime):
self.id = message_id
Expand Down
2 changes: 1 addition & 1 deletion imgurpython/imgur/models/notification.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
class Notification:
class Notification(object):

def __init__(self, notification_id, account_id, viewed, content):
self.id = notification_id
Expand Down
2 changes: 1 addition & 1 deletion imgurpython/imgur/models/tag.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
from .gallery_image import GalleryImage


class Tag:
class Tag(object):

def __init__(self, name, followers, total_items, following, items):
self.name = name
Expand Down
2 changes: 1 addition & 1 deletion imgurpython/imgur/models/tag_vote.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
class TagVote:
class TagVote(object):

def __init__(self, ups, downs, name, author):
self.ups = ups
Expand Down