Skip to content

Commit 070b9cf

Browse files
committed
Fix python3.x unicode issue;
1 parent f57e4fe commit 070b9cf

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

jpush/device/entity.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,8 @@
11
#!/usr/bin/env python
22
#-*- coding:utf8 -*-
3+
import sys
34

4-
if not unicode:
5+
if 2 != sys.version_info[0]:
56
unicode = str
67

78
def add(*types):

0 commit comments

Comments
 (0)