summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorIan Moore <ian.moore@fireeye.com>2015-10-22 09:51:41 -0400
committerIan Moore <ian.moore@fireeye.com>2015-10-22 09:51:41 -0400
commit46e9c557e15435477c05766eae86a625bbdbc0be (patch)
tree80cfd6d43641bcf82fa507c2d803d45be0bfdb84
parenta959bf22acc550cccf2dd52a20c4f6c8ee3250dc (diff)
downloadpystatsd-46e9c557e15435477c05766eae86a625bbdbc0be.tar.gz
Don't break compatibility with code that uses ordered args instead of
kwargs
-rw-r--r--statsd/client.py8
1 files changed, 4 insertions, 4 deletions
diff --git a/statsd/client.py b/statsd/client.py
index 09ebd2d..0ac8fa9 100644
--- a/statsd/client.py
+++ b/statsd/client.py
@@ -131,8 +131,8 @@ class StatsClientBase(object):
class StatsClient(StatsClientBase):
"""A client for statsd."""
- def __init__(self, host='localhost', port=8125, ipv6=False, prefix=None,
- maxudpsize=512):
+ def __init__(self, host='localhost', port=8125, prefix=None,
+ maxudpsize=512, ipv6=False):
"""Create a new client."""
fam = socket.AF_INET6 if ipv6 else socket.AF_INET
family, _, _, _, addr = socket.getaddrinfo(
@@ -157,8 +157,8 @@ class StatsClient(StatsClientBase):
class TCPStatsClient(StatsClientBase):
"""TCP version of StatsClient."""
- def __init__(self, host='localhost', port=8125, ipv6=False, prefix=None,
- timeout=None):
+ def __init__(self, host='localhost', port=8125, prefix=None,
+ timeout=None, ipv6=False):
"""Create a new client."""
self._host = host
self._port = port