diff --git a/webhookit/utils.py b/webhookit/utils.py index c855aa6..2c7216e 100644 --- a/webhookit/utils.py +++ b/webhookit/utils.py @@ -10,15 +10,15 @@ import click import datetime import copy -import app +from webhookit import app +import sys - -if unicode: # noqa - # py2 - the_unicode = unicode # noqa -else: # noqa +if sys.version > '3': # noqa # py3 the_unicode = str # noqa +else: # noqa + # py2 + the_unicode = unicode # noqa def standard_response(success, data):