aboutsummaryrefslogtreecommitdiffstats
path: root/pushover.py
diff options
context:
space:
mode:
authorThibaut Horel <thibaut.horel@gmail.com>2014-07-25 00:07:39 +0200
committerThibaut Horel <thibaut.horel@gmail.com>2014-07-25 00:07:39 +0200
commit61f31a07e9cd797f30dcb9553b8f29b425b0baf1 (patch)
tree60a1bf3e94841f81d59a8b3e1d13a8078077be29 /pushover.py
parent769c689db1f24525be7d2c84c1e3569f1cd10edf (diff)
downloadpython-pushover-61f31a07e9cd797f30dcb9553b8f29b425b0baf1.tar.gz
Fix #4 typo in the documentation
Diffstat (limited to 'pushover.py')
-rw-r--r--pushover.py10
1 files changed, 5 insertions, 5 deletions
diff --git a/pushover.py b/pushover.py
index ebee0b0..6e84a3b 100644
--- a/pushover.py
+++ b/pushover.py
@@ -6,7 +6,7 @@ A typical use of the module looks like this::
import pushover
pushover.init("token")
- client = Client("client-id")
+ client = pushover.Client("client-id")
client.send_message("Hello!", title="Hello", priority=1)
"""
@@ -210,21 +210,21 @@ class Client:
def get_client(profile=None, config_path='~/.pushover'):
"""Create a :class:`Client` object from a default configuration file.
-
+
e.g.
```
#This is the default profile (returned by get_client() with no arguments.)
[Default]
api_token=aaaaaa
user_key=xxxxxx
-
+
# You can specify a device as well.
[Sam-iPhone]
api_token=bbbbbb
user_key=yyyyyy
device=iPhone
```
-
+
* ``profile``: the profile to load as a client (`Default` by default.)
* ``config_path``: path of the configuration file (`~/.pushover` by default.)
"""
@@ -234,7 +234,7 @@ def get_client(profile=None, config_path='~/.pushover'):
if not os.path.exists(config_path):
raise IOError(2, "No such file", config_path)
-
+
config = RawConfigParser({"device": None})
config.read(config_path)