Skip to content

Commit ca2cb59

Browse files
committed
add brackets to print
1 parent 2712121 commit ca2cb59

39 files changed

+66
-41
lines changed

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -52,9 +52,9 @@ except common.Unauthorized:
5252
except common.APIConnectionException:
5353
raise common.APIConnectionException("conn error")
5454
except common.JPushFailure:
55-
print "JPushFailure"
55+
print ("JPushFailure")
5656
except:
57-
print "Exception"
57+
print ("Exception")
5858
```
5959
## 日志说明
6060
logging level 默认的是 WARNING ,为了方便调试建议设置为 DEBUG

examples/__init__.py

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,7 @@
11
"""Python package for using the JPush API"""
22
from .conf import app_key, master_secret
3+
4+
__all__ = [
5+
app_key,
6+
master_secret,
7+
]

examples/device_examples/conf.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
# please put your app_key and master_secret here
2+
app_key = u'6be9204c30b9473e87bad4dc'
3+
master_secret = u'9349ad7c90292a603c512e92'

examples/device_examples/example_aliasuser.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import jpush as jpush
2-
from examples.conf import app_key, master_secret
2+
from conf import app_key, master_secret
33
_jpush = jpush.JPush(app_key, master_secret)
44
_jpush.set_logging("DEBUG")
55
device = _jpush.create_device()

examples/device_examples/example_clrtag.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import jpush as jpush
2-
from examples.conf import app_key, master_secret
2+
from conf import app_key, master_secret
33
_jpush = jpush.JPush(app_key, master_secret)
44
_jpush.set_logging("DEBUG")
55
device = _jpush.create_device()

examples/device_examples/example_getdevice.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import jpush as jpush
2-
from examples.conf import app_key, master_secret
2+
from conf import app_key, master_secret
33
_jpush = jpush.JPush(app_key, master_secret)
44
_jpush.set_logging("DEBUG")
55
device = _jpush.create_device()

examples/device_examples/example_rmalias.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import jpush as jpush
2-
from examples.conf import app_key, master_secret
2+
from conf import app_key, master_secret
33
_jpush = jpush.JPush(app_key, master_secret)
44
_jpush.set_logging("DEBUG")
55
device = _jpush.create_device()

examples/device_examples/example_rmtag.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
#-*- encoding:utf-8 -*-
22

33
import jpush as jpush
4-
from examples.conf import app_key, master_secret
4+
from conf import app_key, master_secret
55
_jpush = jpush.JPush(app_key, master_secret)
66
_jpush.set_logging("DEBUG")
77
device = _jpush.create_device()

examples/device_examples/example_tagexist.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import jpush as jpush
2-
from examples.conf import app_key, master_secret
2+
from conf import app_key, master_secret
33
_jpush = jpush.JPush(app_key, master_secret)
44
_jpush.set_logging("DEBUG")
55
device = _jpush.create_device()

examples/device_examples/example_taglist.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import jpush as jpush
2-
from examples.conf import app_key, master_secret
2+
from conf import app_key, master_secret
33
_jpush = jpush.JPush(app_key, master_secret)
44
_jpush.set_logging("DEBUG")
55
device = _jpush.create_device()

0 commit comments

Comments
 (0)