Skip to content
Browse files

examples: python: use isinstance() to suport inheritance

  • Loading branch information...
1 parent a5c6a78 commit 0191e95a43ea0e93af672c0421ccda0095b6534a @SaveTheRbtz committed Dec 10, 2012
Showing with 1 addition and 1 deletion.
  1. +1 −1 examples/python_example.py
View
2 examples/python_example.py
@@ -38,7 +38,7 @@ def update_stats(self, stats, delta=1, sampleRate=1):
Updates one or more stats counters by arbitrary amounts
>>> Statsd.update_stats('some.int',10)
"""
- if (type(stats) is not list):
+ if isinstance(stats, list):
stats = [stats]
data = {}
for stat in stats:

0 comments on commit 0191e95

Please sign in to comment.
Something went wrong with that request. Please try again.