Code cleaning (remove python2)

This commit is contained in:
Ozzie Isaacs
2021-10-04 19:23:24 +02:00
parent 50919d4721
commit ed26d34961
45 changed files with 108 additions and 146 deletions
+1 -4
View File
@@ -35,10 +35,7 @@ log = logger.create()
def b64encode_json(json_data):
if sys.version_info < (3, 0):
return b64encode(json.dumps(json_data))
else:
return b64encode(json.dumps(json_data).encode())
return b64encode(json.dumps(json_data).encode())
# Python3 has a timestamp() method we could be calling, however it's not avaiable in python2.