Skip to content

Commit 03355a1

Browse files
authored
Merge pull request #156 from pusher/rename-client-to-pusher_client
Rename client to pusher_client
2 parents 8245ab6 + 263a98f commit 03355a1

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

examples/trigger_aiohttp.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,12 +3,12 @@
33
import asyncio
44

55
def main():
6-
client = pusher.Pusher.from_env(
6+
pusher_client = pusher.Pusher.from_env(
77
backend=pusher.aiohttp.AsyncIOBackend,
88
timeout=50
99
)
1010
print("before trigger")
11-
response = yield from client.trigger("hello", "world", dict(foo='bar'))
11+
response = yield from pusher_client.trigger("hello", "world", dict(foo='bar'))
1212
print(response)
1313

1414
asyncio.get_event_loop().run_until_complete(main())

examples/trigger_tornado.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,11 +8,11 @@ def show_response(response):
88
print(response.result())
99
ioloop.stop()
1010

11-
client = pusher.Pusher.from_env(
11+
pusher_client = pusher.Pusher.from_env(
1212
backend=pusher.tornado.TornadoBackend,
1313
timeout=50
1414
)
15-
response = client.trigger("hello", "world", dict(foo='bar'))
15+
response = pusher_client.trigger("hello", "world", dict(foo='bar'))
1616
response.add_done_callback(show_response)
1717
print("Before start")
1818
ioloop.start()

0 commit comments

Comments
 (0)