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/conftest.py
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@

class MockCore(trakt.core.Core):
def __init__(self, *args, **kwargs):
super(MockCore, self).__init__(*args, **kwargs)
super().__init__(*args, **kwargs)
self.mock_data = {}
for mock_file in MOCK_DATA_FILES:
with open(mock_file, encoding='utf-8') as f:
Expand Down
2 changes: 1 addition & 1 deletion trakt/calendar.py
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ def __init__(self, date=None, days=7, extended=None):
:param days: Number of days for this :class:`Calendar`. Defaults to 7
days
"""
super(Calendar, self).__init__()
super().__init__()
self.date = date or now()
self.days = days
self._calendar = []
Expand Down
2 changes: 1 addition & 1 deletion trakt/movies.py
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,7 @@ def updated_movies(timestamp=None):
class Movie(object):
"""A Class representing a Movie object"""
def __init__(self, title, year=None, slug=None, **kwargs):
super(Movie, self).__init__()
super().__init__()
self.media_type = 'movies'
self.title = title
self.year = int(year) if year is not None else year
Expand Down
2 changes: 1 addition & 1 deletion trakt/people.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
class Person(object):
"""A Class representing a trakt.tv Person such as an Actor or Director"""
def __init__(self, name, slug=None, **kwargs):
super(Person, self).__init__()
super().__init__()
self.name = name
self.biography = self.birthplace = self.tmdb_id = self.birthday = None
self.job = self.character = self._images = self._movie_credits = None
Expand Down
2 changes: 1 addition & 1 deletion trakt/sync.py
Original file line number Diff line number Diff line change
Expand Up @@ -448,7 +448,7 @@ def __init__(self, media, progress, app_version, app_date):
:param app_version: The media center application version
:param app_date: The date that *app_version* was released
"""
super(Scrobbler, self).__init__()
super().__init__()
self.progress, self.version = progress, app_version
self.media, self.date = media, app_date
if self.progress > 0:
Expand Down
6 changes: 3 additions & 3 deletions trakt/tv.py
Original file line number Diff line number Diff line change
Expand Up @@ -199,7 +199,7 @@ class TVShow(object):
"""A Class representing a TV Show object."""

def __init__(self, title='', slug=None, **kwargs):
super(TVShow, self).__init__()
super().__init__()
self.media_type = 'shows'
self.top_watchers = self.top_episodes = self.year = self.tvdb = None
self.imdb = self.genres = self.certification = self.network = None
Expand Down Expand Up @@ -503,7 +503,7 @@ class TVSeason(object):
"""Container for TV Seasons"""

def __init__(self, show, season=1, slug=None, **kwargs):
super(TVSeason, self).__init__()
super().__init__()
self.show = show
self.season = season
self.slug = slug or slugify(show)
Expand Down Expand Up @@ -643,7 +643,7 @@ class TVEpisode(object):
"""Container for TV Episodes"""

def __init__(self, show, season, number=-1, **kwargs):
super(TVEpisode, self).__init__()
super().__init__()
self.media_type = 'episodes'
self.show = show
self.season = season
Expand Down
4 changes: 2 additions & 2 deletions trakt/users.py
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ class UserList(namedtuple('UserList', ['name', 'description', 'privacy',
"""A list created by a Trakt.tv :class:`User`"""

def __init__(self, *args, **kwargs):
super(UserList, self).__init__()
super().__init__()
self._items = list()

def __iter__(self, *args, **kwargs):
Expand Down Expand Up @@ -203,7 +203,7 @@ def unlike(self):
class User(object):
"""A Trakt.tv User"""
def __init__(self, username, **kwargs):
super(User, self).__init__()
super().__init__()
self.username = username
self._calendar = self._last_activity = self._watching = None
self._movies = self._movie_collection = self._movies_watched = None
Expand Down