From e747efcdd4bc8ca1be473574d0b2558b8602bce3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Elan=20Ruusam=C3=A4e?= Date: Sun, 16 Jan 2022 02:37:27 +0200 Subject: [PATCH] No need to rename get method to _get This might have been an issue in older Python (2.x?) --- trakt/users.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/trakt/users.py b/trakt/users.py index 523b83d3..27e45e4d 100644 --- a/trakt/users.py +++ b/trakt/users.py @@ -100,7 +100,7 @@ def create(cls, name, creator, description=None, privacy='private', @classmethod @get - def _get(cls, title, creator): + def get(cls, title, creator): """Returns a single custom :class:`UserList` :param title: Name of the list. @@ -494,5 +494,5 @@ def __str__(self): __repr__ = __str__ -# get decorator issue workaround - "It's a little hacky" -UserList.get = UserList._get +# @deprecated remove in 4.0 +UserList._get = UserList.get