jenkins-bot has submitted this change and it was merged. ( https://gerrit.wikimedia.org/r/433708 )
Change subject: Revert "[flake8] Ignore pep8-naming N807 in page.py" ......................................................................
Revert "[flake8] Ignore pep8-naming N807 in page.py"
This reverts commit d2225c28e8066ddf1d41db9cf0b9c9c30fdc4aee. The latest version of pep8-naming (0.7) has fixed that bug. Update pep8-naming requirement.
Bug: T194006 Change-Id: Idb8282d469c5ad9414ca7638906daf40bb4a7bc3 --- M pywikibot/page.py M tox.ini 2 files changed, 3 insertions(+), 3 deletions(-)
Approvals: Xqt: Looks good to me, approved jenkins-bot: Verified
diff --git a/pywikibot/page.py b/pywikibot/page.py index 20c78de..de1b2e3 100644 --- a/pywikibot/page.py +++ b/pywikibot/page.py @@ -5781,11 +5781,11 @@ title)
if sys.version_info[0] > 2: - def __str__(self): # noqa: N807 + def __str__(self): """Return a string representation.""" return self.__unicode__() else: - def __str__(self): # noqa: N807 + def __str__(self): """Return a string representation.""" return self.astext().encode("ascii", "backslashreplace")
diff --git a/tox.ini b/tox.ini index 132dbf5..f0d1d67 100644 --- a/tox.ini +++ b/tox.ini @@ -67,7 +67,7 @@ flake8-tuple>=0.2.8 flake8-print>=2.0.1 flake8-mock>=0.3 - pep8-naming!=0.6 + pep8-naming>=0.7 flake8-invalid-escape-sequences
# 4a226d07 is https://github.com/erikrose/blessings/pull/104