File tree Expand file tree Collapse file tree 3 files changed +3
-22
lines changed Expand file tree Collapse file tree 3 files changed +3
-22
lines changed Original file line number Diff line number Diff line change @@ -352,14 +352,9 @@ def PipeClient(address):
352
352
353
353
MESSAGE_LENGTH = 20
354
354
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#'
363
358
364
359
def deliver_challenge (connection , authkey ):
365
360
import hmac
Original file line number Diff line number Diff line change 32
32
except ImportError :
33
33
from pickle import PicklingError
34
34
35
- #
36
- #
37
- #
38
-
39
- try :
40
- bytes
41
- except NameError :
42
- bytes = str # XXX not needed in Py2.6 and Py3.0
43
-
44
35
#
45
36
# Register some things for pickling
46
37
#
Original file line number Diff line number Diff line change 26
26
except OSError :
27
27
ORIGINAL_DIR = None
28
28
29
- try :
30
- bytes
31
- except NameError :
32
- bytes = str # XXX not needed in Py2.6 and Py3.0
33
-
34
29
#
35
30
# Public functions
36
31
#
You can’t perform that action at this time.
0 commit comments