Remove python2 support
-# -*- coding: utf-8 -*-
-
"""Integration utility functions."""
-from __future__ import division, print_function, unicode_literals
-
import os
-import six
def normalize_request_payload(request):
@@ -37,7 +32,4 @@ def get_secret(size=64):
:param size: Number of bytes
"""
secret = os.urandom(size)
- if six.PY2:
- # On python two os.urandom returns str instead of bytes
- return secret.encode('hex')
return secret.hex()
