Remove comments to fix syntax errors
This commit is contained in:
parent
027256dbb7
commit
55ebc73f9e
@ -201,9 +201,9 @@ $$
|
||||
import base64
|
||||
|
||||
data_to_encode = '%s:%s' % (username, password)
|
||||
if sys.version_info[0] < 3: -- python 2.x
|
||||
if sys.version_info[0] < 3:
|
||||
data_encoded = base64.encodestring(data_to_encode)
|
||||
else: -- python 3.x
|
||||
else:
|
||||
data_encoded = base64.b64encode(data_to_encode.encode()).decode()
|
||||
|
||||
data_encoded = data_encoded.replace('\n', '')
|
||||
|
Loading…
Reference in New Issue
Block a user