diff options
| author | Devendra | 2014-05-02 22:45:17 +0530 |
|---|---|---|
| committer | Devendra | 2014-05-02 22:45:17 +0530 |
| commit | e0207efea24574bc6dac3e0aadb2d53cebe2a307 (patch) | |
| tree | 0405b3e2498bbc4fe79254b1e492423fb8444844 /python/examples | |
| parent | ca29b41c781c3a9861141811b208432fbda8aa0a (diff) | |
| download | pubnub-python-e0207efea24574bc6dac3e0aadb2d53cebe2a307.tar.bz2 | |
console enhancements
Diffstat (limited to 'python/examples')
| -rw-r--r-- | python/examples/console.py | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/python/examples/console.py b/python/examples/console.py index d43ee80..3041a02 100644 --- a/python/examples/console.py +++ b/python/examples/console.py @@ -122,11 +122,11 @@ def _publish_command_handler(channel, message,async=False): def _subscribe_command_handler(channel): - def _callback(r): - print_ok(r, channel) + def _callback(r,ch): + print_ok(r, ch) - def _error(r): - print_error(r, channel) + def _error(r,ch=None): + print_error(r, ch if ch is not None else channel) def _disconnect(r): print_error("DISCONNECTED", r) |
