jenkins-bot has submitted this change. ( 
https://gerrit.wikimedia.org/r/c/pywikibot/core/+/790791 )

Change subject: [doc] Fix library usage description
......................................................................

[doc] Fix library usage description

Bug: T308063
Change-Id: Ice94a7302b06c0f25df22eff42b10244de24c2c5
---
M docs/library_usage.rst
1 file changed, 2 insertions(+), 2 deletions(-)

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



diff --git a/docs/library_usage.rst b/docs/library_usage.rst
index bca1af9..b1c0846 100644
--- a/docs/library_usage.rst
+++ b/docs/library_usage.rst
@@ -30,7 +30,7 @@
         options = {}
         gen_factory = pagegenerators.GeneratorFactory()
         # Option parsing
-        local_args = pywikibot.handle_args(args)  # global options
+        local_args = pywikibot.handle_args()  # global options
         local_args = gen_factory.handle_args(local_args)  # generators options
         for arg in local_args:
             opt, sep, value = arg.partition(':')
@@ -38,7 +38,7 @@
                 options[opt[1:]] = value
         MyBot(generator=gen_factory.getCombinedGenerator(), **options).run()

-    if __name == '__main__':
+    if __name__ == '__main__':
         main()

 The script can be invoked from commandline like::

--
To view, visit https://gerrit.wikimedia.org/r/c/pywikibot/core/+/790791
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: Ice94a7302b06c0f25df22eff42b10244de24c2c5
Gerrit-Change-Number: 790791
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