From f6e034bbad6a789df94b0e649137437eb2e86512 Mon Sep 17 00:00:00 2001 From: leng Date: Fri, 8 Jun 2018 15:22:51 +0800 Subject: [PATCH] =?UTF-8?q?python3=E5=85=BC=E5=AE=B9=E6=80=A7=E4=BF=AE?= =?UTF-8?q?=E5=A4=8D?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- webhookit/utils.py | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) 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):