Skip to content
Open
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
2 changes: 1 addition & 1 deletion tests/test_sync.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@



class FakeMedia(object):
class FakeMedia:
"""Mock media type object to use with mock sync requests"""
media_type = 'fake'

Expand Down
2 changes: 1 addition & 1 deletion trakt/calendar.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
'MySeasonCalendar', 'MovieCalendar', 'MyMovieCalendar']


class Calendar(object):
class Calendar:
"""Base :class:`Calendar` type serves as a foundation for other Calendar
types
"""
Expand Down
2 changes: 1 addition & 1 deletion trakt/core.py
Original file line number Diff line number Diff line change
Expand Up @@ -441,7 +441,7 @@ def load_config():
APPLICATION_ID = config_data.get('APPLICATION_ID', None)


class Core(object):
class Core:
"""This class contains all of the functionality required for interfacing
with the Trakt.tv API
"""
Expand Down
2 changes: 1 addition & 1 deletion trakt/movies.py
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,7 @@ def updated_movies(timestamp=None):
'note', 'release_type'])


class Movie(object):
class Movie:
"""A Class representing a Movie object"""
def __init__(self, title, year=None, slug=None, **kwargs):
super(Movie, self).__init__()
Expand Down
8 changes: 4 additions & 4 deletions trakt/people.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
'TVCredits']


class Person(object):
class Person:
"""A Class representing a trakt.tv Person such as an Actor or Director"""
def __init__(self, name, slug=None, **kwargs):
super(Person, self).__init__()
Expand Down Expand Up @@ -112,7 +112,7 @@ def __str__(self):
__repr__ = __str__


class ActingCredit(object):
class ActingCredit:
"""An individual credit for a :class:`Person` who played a character in a
Movie or TV Show
"""
Expand All @@ -130,7 +130,7 @@ def __str__(self):
__repr__ = __str__


class CrewCredit(object):
class CrewCredit:
"""An individual crew credit for a :class:`Person` who had an off-screen
job on a Movie or a TV Show
"""
Expand All @@ -148,7 +148,7 @@ def __str__(self):
__repr__ = __str__


class Credits(object):
class Credits:
"""A base type representing a :class:`Person`'s credits for Movies or TV
Shows
"""
Expand Down
4 changes: 2 additions & 2 deletions trakt/sync.py
Original file line number Diff line number Diff line change
Expand Up @@ -431,7 +431,7 @@ def delete_checkin():
yield "checkin"


class Scrobbler(object):
class Scrobbler:
"""Scrobbling is a seemless and automated way to track what you're watching
in a media center. This class allows the media center to easily send
events that correspond to starting, pausing, stopping or finishing
Expand Down Expand Up @@ -504,7 +504,7 @@ def __exit__(self, exc_type, exc_val, exc_tb):
self.finish()


class SearchResult(object):
class SearchResult:
"""A SearchResult is an individual result item from the trakt.tv search
API. It wraps a single media entity whose type is indicated by the type
field.
Expand Down
6 changes: 3 additions & 3 deletions trakt/tv.py
Original file line number Diff line number Diff line change
Expand Up @@ -195,7 +195,7 @@ def anticipated_shows(page=1, limit=10, extended=None):
yield [TVShow(**show['show']) for show in data]


class TVShow(object):
class TVShow:
"""A Class representing a TV Show object."""

def __init__(self, title='', slug=None, **kwargs):
Expand Down Expand Up @@ -499,7 +499,7 @@ def __str__(self):
__repr__ = __str__


class TVSeason(object):
class TVSeason:
"""Container for TV Seasons"""

def __init__(self, show, season=1, slug=None, **kwargs):
Expand Down Expand Up @@ -639,7 +639,7 @@ def __len__(self):
__repr__ = __str__


class TVEpisode(object):
class TVEpisode:
"""Container for TV Episodes"""

def __init__(self, show, season, number=-1, **kwargs):
Expand Down
2 changes: 1 addition & 1 deletion trakt/users.py
Original file line number Diff line number Diff line change
Expand Up @@ -200,7 +200,7 @@ def unlike(self):
yield uri.format(username=slugify(self.creator), id=self.trakt)


class User(object):
class User:
"""A Trakt.tv User"""
def __init__(self, username, **kwargs):
super(User, self).__init__()
Expand Down