Commit 2602b52b authored by fendouai's avatar fendouai Committed by GitHub

Merge pull request #33 from Panmax/fix_python2_unicode

修复 python2 alert 不能传 unicode 的bug
parents 4fb7f5d9 53c93d2d
import re
import sys
# Valid autobadge values: auto, +N, -N
VALID_AUTOBADGE = re.compile(r'^(auto|[+-][\d]+)$')
PY2 = sys.version_info[0] == 2
if not PY2:
string_types = (str,)
else:
string_types = (str, unicode)
def notification(alert=None, ios=None, android=None, winphone=None):
"""Create a notification payload.
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment