[Pywikipedia-bugs] [Maniphest] [Commented On] T265817: Remove Python 2 workarounds in family.py

2020-10-23 Thread gerritbot
gerritbot added a comment. Change 635997 **merged** by jenkins-bot: [pywikibot/core@master] [4.0] Remove Python 2 workarounds in family.py https://gerrit.wikimedia.org/r/635997 TASK DETAIL https://phabricator.wikimedia.org/T265817 EMAIL PREFERENCES

[Pywikipedia-bugs] [Maniphest] [Commented On] T265817: Remove Python 2 workarounds in family.py

2020-10-23 Thread gerritbot
gerritbot added a comment. Change 635997 had a related patch set uploaded (by Xqt; owner: Xqt): [pywikibot/core@master] [4.0] Remove Python 2 workarounds in family.py https://gerrit.wikimedia.org/r/635997 TASK DETAIL https://phabricator.wikimedia.org/T265817 EMAIL PREFERENCES

[Pywikipedia-bugs] [Maniphest] [Commented On] T265817: Remove Python 2 workarounds in family.py

2020-10-18 Thread zhuyifei1999
zhuyifei1999 added a comment. We can - cls.__new__ = staticmethod(lambda cls: cls.instance) # shortcut + cls.__new__ = lambda cls: cls.instance - cls.__init__ = deprecated(cls.__dict__['__init__']) + cls.__init__ = deprecated(cls.__init__) TASK DETAIL