Permalink
Browse files

examples: python: fixed batch update_stats()

This fixes nasty bug introduced by:
    examples: python: use isinstance() to suport inheritance

Pointy hat to: me
TODO: proper tests for update_stats
  • Loading branch information...
1 parent 220f898 commit d67b1c0abe4795e0010749fb92d68026a91d7c9a @SaveTheRbtz SaveTheRbtz committed Dec 23, 2012
Showing with 1 addition and 1 deletion.
  1. +1 −1 examples/python_example.py
@@ -46,7 +46,7 @@ def update_stats(self, stats, delta=1, sampleRate=1):
>>> client = StatsdClient()
>>> client.update_stats('some.int', 10)
"""
- if isinstance(stats, list):
+ if not isinstance(stats, list):
stats = [stats]
data = {}
for stat in stats:

0 comments on commit d67b1c0

Please sign in to comment.