From 471b535ffc2fb3f97c72706501e9ca039d7010e9 Mon Sep 17 00:00:00 2001 From: Patrick Valsecchi Date: Wed, 13 Sep 2017 09:36:30 +0200 Subject: [PATCH] Allow statsd keys starting with a number --- c2cwsgiutils/stats.py | 2 -- setup.py | 2 +- 2 files changed, 1 insertion(+), 3 deletions(-) diff --git a/c2cwsgiutils/stats.py b/c2cwsgiutils/stats.py index e6c9348e2..44d287e34 100644 --- a/c2cwsgiutils/stats.py +++ b/c2cwsgiutils/stats.py @@ -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): diff --git a/setup.py b/setup.py index b4ddc22bc..b9b12498f 100644 --- a/setup.py +++ b/setup.py @@ -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()