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

Change subject: [IMPR] Keep Python 2.7 compatibility with pwb.py caller script
......................................................................

[IMPR] Keep Python 2.7 compatibility with pwb.py caller script

Change-Id: I9b8c12a57b12bc92010b4c0c49fb49357276d45c
---
M pwb.py
1 file changed, 2 insertions(+), 2 deletions(-)

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



diff --git a/pwb.py b/pwb.py
index e515776..7c061a1 100644
--- a/pwb.py
+++ b/pwb.py
@@ -7,9 +7,7 @@
 #
 # Distributed under the terms of the MIT license.
 #
-import runpy
 import sys
-from pathlib import Path

 VERSIONS_REQUIRED_MESSAGE = """
 Pywikibot is not available on:
@@ -30,6 +28,8 @@

 def main():
     """Entry point for :func:`tests.utils.execute_pwb`."""
+    import runpy
+    from pathlib import Path
     path = Path().resolve() / 'pywikibot' / 'scripts' / 'wrapper.py'
     runpy.run_path(str(path), run_name='__main__')


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