Kaydet (Commit) b09c9396 authored tarafından Benjamin Peterson's avatar Benjamin Peterson

use byte literals in multiprocessing

üst 41a7ce0a
...@@ -352,14 +352,9 @@ if sys.platform == 'win32': ...@@ -352,14 +352,9 @@ if sys.platform == 'win32':
MESSAGE_LENGTH = 20 MESSAGE_LENGTH = 20
CHALLENGE = '#CHALLENGE#' CHALLENGE = b'#CHALLENGE#'
WELCOME = '#WELCOME#' WELCOME = b'#WELCOME#'
FAILURE = '#FAILURE#' FAILURE = b'#FAILURE#'
if sys.version_info >= (3, 0): # XXX can use bytes literals in 2.6/3.0
CHALLENGE = CHALLENGE.encode('ascii')
WELCOME = WELCOME.encode('ascii')
FAILURE = FAILURE.encode('ascii')
def deliver_challenge(connection, authkey): def deliver_challenge(connection, authkey):
import hmac import hmac
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment