John Vandenberg has uploaded a new change for review.

  https://gerrit.wikimedia.org/r/234195

Change subject: Work around traceback in atexit
......................................................................

Work around traceback in atexit

Bug: T74699
Change-Id: I527ba5ba32fd3d517ca654e4beb34156953d5e21
---
M setup.py
1 file changed, 7 insertions(+), 0 deletions(-)


  git pull ssh://gerrit.wikimedia.org:29418/pywikibot/core 
refs/changes/95/234195/1

diff --git a/setup.py b/setup.py
index bbff59b..66495ae 100644
--- a/setup.py
+++ b/setup.py
@@ -10,6 +10,13 @@
 import os
 import sys
 
+try:
+    # Work around a traceback on Python < 2.7.4 and < 3.3.1
+    # http://bugs.python.org/issue15881#msg170215
+    import multiprocessing  # noqa: unused
+except ImportError:
+    pass
+
 PYTHON_VERSION = sys.version_info[:3]
 PY2 = (PYTHON_VERSION[0] == 2)
 PY26 = (PYTHON_VERSION < (2, 7))

-- 
To view, visit https://gerrit.wikimedia.org/r/234195
To unsubscribe, visit https://gerrit.wikimedia.org/r/settings

Gerrit-MessageType: newchange
Gerrit-Change-Id: I527ba5ba32fd3d517ca654e4beb34156953d5e21
Gerrit-PatchSet: 1
Gerrit-Project: pywikibot/core
Gerrit-Branch: master
Gerrit-Owner: John Vandenberg <[email protected]>

_______________________________________________
MediaWiki-commits mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits

Reply via email to