jenkins-bot submitted this change.

View Change

Approvals: Xqt: Looks good to me, approved jenkins-bot: Verified
[IMPR] Keep Python 2.7 compatibility with pwb.py caller script

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

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 change 846973. To unsubscribe, or for help writing mail filters, visit settings.

Gerrit-Project: pywikibot/core
Gerrit-Branch: master
Gerrit-Change-Id: I9b8c12a57b12bc92010b4c0c49fb49357276d45c
Gerrit-Change-Number: 846973
Gerrit-PatchSet: 1
Gerrit-Owner: Xqt <info@gno.de>
Gerrit-Reviewer: Xqt <info@gno.de>
Gerrit-Reviewer: jenkins-bot
Gerrit-MessageType: merged