From ceddddeb2bb052d8fada40c9efcd1564f60f7dcc Mon Sep 17 00:00:00 2001 From: Eugene Kliuchnikov Date: Mon, 22 Aug 2016 15:59:08 +0200 Subject: [PATCH] Fix setup.py regexp --- setup.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/setup.py b/setup.py index 5e4278b..b36a439 100644 --- a/setup.py +++ b/setup.py @@ -20,7 +20,7 @@ def get_version(): version = 0 with open(brotlimodule, 'r') as f: for line in f: - m = re.match(r'#define\sBROTLI_VERSION\s+0x([0-9a-fA-F])', line) + m = re.match(r'#define\sBROTLI_VERSION\s+0x([0-9a-fA-F]+)', line) if m: version = int(m.group(1), 16) if version == 0: