diff options
author | James Socol <me@jamessocol.com> | 2015-10-22 18:05:31 -0400 |
---|---|---|
committer | James Socol <me@jamessocol.com> | 2015-10-22 18:05:31 -0400 |
commit | 0c6fb0a8eb89e15873dbd12e06b7483d41510c8f (patch) | |
tree | 80cfd6d43641bcf82fa507c2d803d45be0bfdb84 | |
parent | a959bf22acc550cccf2dd52a20c4f6c8ee3250dc (diff) | |
parent | 46e9c557e15435477c05766eae86a625bbdbc0be (diff) | |
download | pystatsd-0c6fb0a8eb89e15873dbd12e06b7483d41510c8f.tar.gz |
Merge pull request #68 from imoore76/master
Don't break compatibility with code that uses ordered args
-rw-r--r-- | statsd/client.py | 8 |
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 |