jenkins-bot has submitted this change. ( 
https://gerrit.wikimedia.org/r/c/pywikibot/core/+/1101542?usp=email )

Change subject: IMPR: use str() buildin instead of soecial function call __str__
......................................................................

IMPR: use str() buildin instead of soecial function call __str__

Change-Id: I5e013af098d992fd32901be59f364d3f2e0c2713
---
M pywikibot/exceptions.py
M pywikibot/site/_basesite.py
2 files changed, 2 insertions(+), 2 deletions(-)

Approvals:
  Xqt: Looks good to me, approved
  jenkins-bot: Verified




diff --git a/pywikibot/exceptions.py b/pywikibot/exceptions.py
index de528b4..4d28748 100644
--- a/pywikibot/exceptions.py
+++ b/pywikibot/exceptions.py
@@ -223,7 +223,7 @@
         self.code = code
         self.info = info
         self.other = kwargs
-        self.unicode = self.__str__()
+        self.unicode = str(self)

     def __repr__(self) -> str:
         """Return internal representation."""
diff --git a/pywikibot/site/_basesite.py b/pywikibot/site/_basesite.py
index 86ee9f8..4122284 100644
--- a/pywikibot/site/_basesite.py
+++ b/pywikibot/site/_basesite.py
@@ -221,7 +221,7 @@
     @property
     def sitename(self):
         """String representing this Site's name and code."""
-        return self.__str__()
+        return str(self)

     def __repr__(self) -> str:
         """Return internal representation."""

--
To view, visit 
https://gerrit.wikimedia.org/r/c/pywikibot/core/+/1101542?usp=email
To unsubscribe, or for help writing mail filters, visit 
https://gerrit.wikimedia.org/r/settings?usp=email

Gerrit-MessageType: merged
Gerrit-Project: pywikibot/core
Gerrit-Branch: master
Gerrit-Change-Id: I5e013af098d992fd32901be59f364d3f2e0c2713
Gerrit-Change-Number: 1101542
Gerrit-PatchSet: 1
Gerrit-Owner: Xqt <i...@gno.de>
Gerrit-Reviewer: Xqt <i...@gno.de>
Gerrit-Reviewer: jenkins-bot
_______________________________________________
Pywikibot-commits mailing list -- pywikibot-commits@lists.wikimedia.org
To unsubscribe send an email to pywikibot-commits-le...@lists.wikimedia.org

Reply via email to