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

Change subject: [doc] Do not show version hints with -help option in 
make_dist.py
......................................................................

[doc] Do not show version hints with -help option in make_dist.py

Change-Id: I5ba629de9535648430b156d8cd451bac092f13bf
---
M make_dist.py
1 file changed, 4 insertions(+), 1 deletion(-)

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




diff --git a/make_dist.py b/make_dist.py
index 8dc2a13..8979c73 100755
--- a/make_dist.py
+++ b/make_dist.py
@@ -204,8 +204,11 @@
         uploaded
     """
     if '-help' in sys.argv:
+        import re
         import setup
-        info(__doc__)
+        help_text = re.sub(r'^\.\. version(added|changed)::.+', '',
+                           __doc__, flags=re.MULTILINE | re.DOTALL)
+        info(help_text)
         info(setup.__doc__)
         sys.exit()


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