jenkins-bot has submitted this change and it was merged. ( https://gerrit.wikimedia.org/r/351921 )
Change subject: [doc] a better doc string for site.code and site.lang properties ......................................................................
[doc] a better doc string for site.code and site.lang properties
give a better explanation for the differences
Change-Id: I189ae24230e23b261a918f594c196a166453e161 --- M pywikibot/site.py 1 file changed, 2 insertions(+), 2 deletions(-)
Approvals: Lokal Profil: Looks good to me, approved jenkins-bot: Verified
diff --git a/pywikibot/site.py b/pywikibot/site.py index 7f67d03..fa9385b 100644 --- a/pywikibot/site.py +++ b/pywikibot/site.py @@ -811,7 +811,7 @@ @property def code(self): """ - The identifying code for this Site. + The identifying code for this Site equal to the wiki prefix.
By convention, this is usually an ISO language code, but it does not have to be. @@ -822,7 +822,7 @@ def lang(self): """The ISO language code for this Site.
- Presumed to be equal to the wiki prefix, but this can be overridden. + Presumed to be equal to the site code, but this can be overridden. """ return self.__code
pywikibot-commits@lists.wikimedia.org