Remove comments to fix syntax errors

This commit is contained in:
manmorjim 2020-02-11 19:31:37 +01:00
parent 027256dbb7
commit 55ebc73f9e

View File

@ -201,9 +201,9 @@ $$
import base64 import base64
data_to_encode = '%s:%s' % (username, password) 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) data_encoded = base64.encodestring(data_to_encode)
else: -- python 3.x else:
data_encoded = base64.b64encode(data_to_encode.encode()).decode() data_encoded = base64.b64encode(data_to_encode.encode()).decode()
data_encoded = data_encoded.replace('\n', '') data_encoded = data_encoded.replace('\n', '')