Skip to content

Commit

Permalink
Allow statsd keys starting with a number
Browse files Browse the repository at this point in the history
  • Loading branch information
Patrick Valsecchi committed Sep 13, 2017
1 parent 7eab7b3 commit 471b535
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 3 deletions.
2 changes: 0 additions & 2 deletions c2cwsgiutils/stats.py
Original file line number Diff line number Diff line change
Expand Up @@ -154,8 +154,6 @@ def __init__(self, address, prefix):

@staticmethod
def _key_entry(key_entry):
if key_entry[0].isdigit():
key_entry = '_' + key_entry
return INVALID_KEY_CHARS.sub("_", str(key_entry))

def _key(self, key):
Expand Down
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
from setuptools import setup, find_packages


VERSION = '0.24.2'
VERSION = '0.24.3'
HERE = os.path.abspath(os.path.dirname(__file__))
INSTALL_REQUIRES = open(os.path.join(HERE, 'requirements.txt')).read().splitlines()

Expand Down

0 comments on commit 471b535

Please sign in to comment.