Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Fixes 2.5 support, bumps to 2.7.3.7

  • Loading branch information...
commit 31ed246f74438bfec00fb820c6f926613e587228 1 parent 1f85cb6
@ask authored
View
5 CHANGES.txt
@@ -1,3 +1,8 @@
+2.7.3.7 - 2012-05-21
+--------------------
+
+- Fixes Python 2.5 support.
+
2.7.3.6 - 2012-05-21
--------------------
View
2  Modules/_billiard/multiprocessing.c
@@ -238,7 +238,7 @@ init_billiard(void)
Py_XDECREF(temp);
/* Get copy of BufferTooShort */
- temp = PyImport_ImportModule("multiprocessing");
+ temp = PyImport_ImportModule("billiard");
if (!temp)
return;
BufferTooShort = PyObject_GetAttrString(temp, "BufferTooShort");
View
2  Modules/_billiard/win32_functions.c
@@ -237,7 +237,7 @@ PyTypeObject Win32Type = {
PyObject *
create_win32_namespace(void)
{
- Win32Type.tp_name = "_multiprocessing.win32";
+ Win32Type.tp_name = "_billiard.win32";
Win32Type.tp_methods = win32_methods;
if (PyType_Ready(&Win32Type) < 0)
return NULL;
View
2  billiard/__init__.py
@@ -45,7 +45,7 @@
from __future__ import absolute_import
from __future__ import with_statement
-VERSION = (2, 7, 3, 6)
+VERSION = (2, 7, 3, 7)
__version__ = ".".join(map(str, VERSION[0:4])) + "".join(VERSION[4:])
__author__ = 'R Oudkerk / Python Software Foundation'
__author_email__ = 'python-dev@python.org'
View
2  billiard/forking.py
@@ -473,7 +473,7 @@ def main():
logfile = os.environ.get("_MP_FORK_LOGFILE_") or None
format = os.environ.get("_MP_FORK_LOGFORMAT_")
if loglevel:
- from multiprocessing import util
+ from billiard import util
import logging
logger = util.get_logger()
logger.setLevel(int(loglevel))
View
11 billiard/tests/test_multiprocessing.py
@@ -43,6 +43,7 @@
import billiard.pool
from billiard import util
+from billiard.compat import bytes
#
#
@@ -1890,12 +1891,12 @@ class OtherTest(unittest.TestCase):
def test_deliver_challenge_auth_failure(self):
class _FakeConnection(object):
def recv_bytes(self, size):
- return b'something bogus'
+ return bytes('something bogus')
def send_bytes(self, data):
pass
self.assertRaises(billiard.AuthenticationError,
billiard.connection.deliver_challenge,
- _FakeConnection(), b'abc')
+ _FakeConnection(), bytes('abc'))
def test_answer_challenge_auth_failure(self):
class _FakeConnection(object):
@@ -1906,13 +1907,13 @@ def recv_bytes(self, size):
if self.count == 1:
return billiard.connection.CHALLENGE
elif self.count == 2:
- return b'something bogus'
- return b''
+ return bytes('something bogus')
+ return bytes('')
def send_bytes(self, data):
pass
self.assertRaises(billiard.AuthenticationError,
billiard.connection.answer_challenge,
- _FakeConnection(), b'abc')
+ _FakeConnection(), bytes('abc'))
#
# Test Manager.start()/Pool.__init__() initializer feature - see issue 5585
Please sign in to comment.
Something went wrong with that request. Please try again.