Skip to content

Commit 1fcfe21

Browse files
committed
Merged revisions 64517,64519 via svnmerge from
svn+ssh://pythondev@svn.python.org/python/trunk ........ r64517 | benjamin.peterson | 2008-06-24 22:09:05 -0500 (Tue, 24 Jun 2008) | 1 line remove bytes alias in multiprocessing ........ r64519 | benjamin.peterson | 2008-06-25 07:39:05 -0500 (Wed, 25 Jun 2008) | 1 line use byte literals in multiprocessing ........
1 parent 57f6a55 commit 1fcfe21

File tree

3 files changed

+3
-22
lines changed

3 files changed

+3
-22
lines changed

Lib/multiprocessing/connection.py

Lines changed: 3 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -352,14 +352,9 @@ def PipeClient(address):
352352

353353
MESSAGE_LENGTH = 20
354354

355-
CHALLENGE = '#CHALLENGE#'
356-
WELCOME = '#WELCOME#'
357-
FAILURE = '#FAILURE#'
358-
359-
if sys.version_info >= (3, 0): # XXX can use bytes literals in 2.6/3.0
360-
CHALLENGE = CHALLENGE.encode('ascii')
361-
WELCOME = WELCOME.encode('ascii')
362-
FAILURE = FAILURE.encode('ascii')
355+
CHALLENGE = b'#CHALLENGE#'
356+
WELCOME = b'#WELCOME#'
357+
FAILURE = b'#FAILURE#'
363358

364359
def deliver_challenge(connection, authkey):
365360
import hmac

Lib/multiprocessing/managers.py

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -32,15 +32,6 @@
3232
except ImportError:
3333
from pickle import PicklingError
3434

35-
#
36-
#
37-
#
38-
39-
try:
40-
bytes
41-
except NameError:
42-
bytes = str # XXX not needed in Py2.6 and Py3.0
43-
4435
#
4536
# Register some things for pickling
4637
#

Lib/multiprocessing/process.py

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -26,11 +26,6 @@
2626
except OSError:
2727
ORIGINAL_DIR = None
2828

29-
try:
30-
bytes
31-
except NameError:
32-
bytes = str # XXX not needed in Py2.6 and Py3.0
33-
3429
#
3530
# Public functions
3631
#

0 commit comments

Comments
 (0)