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

Change subject: [cleanup] use self.origin attribute instead of property
......................................................................

[cleanup] use self.origin attribute instead of property

There is no reason tjo have properties here instead of an attribute

Change-Id: I8ed6bed0dd7bc28a5855893b2b0c1d0d49f4712a
---
M pywikibot/interwiki_graph.py
1 file changed, 12 insertions(+), 10 deletions(-)

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




diff --git a/pywikibot/interwiki_graph.py b/pywikibot/interwiki_graph.py
index 66eb8be..40d67c4 100644
--- a/pywikibot/interwiki_graph.py
+++ b/pywikibot/interwiki_graph.py
@@ -62,7 +62,7 @@
         :param origin: the page on the 'origin' wiki
         """
         # Remember the "origin page"
-        self._origin = origin
+        self.origin = origin

         # found_in is a dictionary where pages are keys and lists of
         # pages are values. It stores where we found each page.
@@ -72,15 +72,6 @@
         if origin:
             self.found_in = {origin: []}

-    @property
-    def origin(self) -> pywikibot.page.Page | None:
-        """Page on the origin wiki."""
-        return self._origin
-
-    @origin.setter
-    def origin(self, value: pywikibot.page.Page | None) -> None:
-        self._origin = value
-

 class GraphDrawer:


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

Gerrit-Project: pywikibot/core
Gerrit-Branch: master
Gerrit-Change-Id: I8ed6bed0dd7bc28a5855893b2b0c1d0d49f4712a
Gerrit-Change-Number: 1005504
Gerrit-PatchSet: 1
Gerrit-Owner: Xqt <[email protected]>
Gerrit-Reviewer: Xqt <[email protected]>
Gerrit-Reviewer: jenkins-bot
Gerrit-MessageType: merged
_______________________________________________
Pywikibot-commits mailing list -- [email protected]
To unsubscribe send an email to [email protected]

Reply via email to