Skip to content

Commit 75abb0e

Browse files
committed
Merge branch 'remove-deprecated-super'
Merged moogar0880/PyTrakt#191
2 parents 69b4138 + 6d26869 commit 75abb0e

File tree

7 files changed

+10
-10
lines changed

7 files changed

+10
-10
lines changed

tests/conftest.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@
2727

2828
class MockCore(trakt.core.Core):
2929
def __init__(self, *args, **kwargs):
30-
super(MockCore, self).__init__(*args, **kwargs)
30+
super().__init__(*args, **kwargs)
3131
self.mock_data = {}
3232
for mock_file in MOCK_DATA_FILES:
3333
with open(mock_file, encoding='utf-8') as f:

trakt/calendar.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ def __init__(self, date=None, days=7, extended=None):
2626
:param days: Number of days for this :class:`Calendar`. Defaults to 7
2727
days
2828
"""
29-
super(Calendar, self).__init__()
29+
super().__init__()
3030
self.date = date or now()
3131
self.days = days
3232
self._calendar = []

trakt/movies.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -84,7 +84,7 @@ def updated_movies(timestamp=None):
8484
class Movie(object):
8585
"""A Class representing a Movie object"""
8686
def __init__(self, title, year=None, slug=None, **kwargs):
87-
super(Movie, self).__init__()
87+
super().__init__()
8888
self.media_type = 'movies'
8989
self.title = title
9090
self.year = int(year) if year is not None else year

trakt/people.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
class Person(object):
1313
"""A Class representing a trakt.tv Person such as an Actor or Director"""
1414
def __init__(self, name, slug=None, **kwargs):
15-
super(Person, self).__init__()
15+
super().__init__()
1616
self.name = name
1717
self.biography = self.birthplace = self.tmdb_id = self.birthday = None
1818
self.job = self.character = self._images = self._movie_credits = None

trakt/sync.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -451,7 +451,7 @@ def __init__(self, media, progress, app_version, app_date):
451451
:param app_version: The media center application version
452452
:param app_date: The date that *app_version* was released
453453
"""
454-
super(Scrobbler, self).__init__()
454+
super().__init__()
455455
self.progress, self.version = progress, app_version
456456
self.media, self.date = media, app_date
457457
if self.progress > 0:

trakt/tv.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -201,7 +201,7 @@ class TVShow(object):
201201
"""A Class representing a TV Show object."""
202202

203203
def __init__(self, title='', slug=None, **kwargs):
204-
super(TVShow, self).__init__()
204+
super().__init__()
205205
self.media_type = 'shows'
206206
self.top_watchers = self.top_episodes = self.year = self.tvdb = None
207207
self.imdb = self.genres = self.certification = self.network = None
@@ -563,7 +563,7 @@ class TVSeason(object):
563563
"""Container for TV Seasons"""
564564

565565
def __init__(self, show, season=1, slug=None, **kwargs):
566-
super(TVSeason, self).__init__()
566+
super().__init__()
567567
self.show = show
568568
self.season = season
569569
self.slug = slug or slugify(show)
@@ -703,7 +703,7 @@ class TVEpisode(object):
703703
"""Container for TV Episodes"""
704704

705705
def __init__(self, show, season, number=-1, **kwargs):
706-
super(TVEpisode, self).__init__()
706+
super().__init__()
707707
self.media_type = 'episodes'
708708
self.show = show
709709
self.season = season

trakt/users.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,7 @@ class UserList(namedtuple('UserList', ['name', 'description', 'privacy',
7070
"""A list created by a Trakt.tv :class:`User`"""
7171

7272
def __init__(self, *args, **kwargs):
73-
super(UserList, self).__init__()
73+
super().__init__()
7474
self._items = list()
7575

7676
def __iter__(self, *args, **kwargs):
@@ -204,7 +204,7 @@ def unlike(self):
204204
class User(object):
205205
"""A Trakt.tv User"""
206206
def __init__(self, username, **kwargs):
207-
super(User, self).__init__()
207+
super().__init__()
208208
self.username = username
209209
self._calendar = self._last_activity = self._watching = None
210210
self._movies = self._movie_collection = self._movies_watched = None

0 commit comments

Comments
 (0)