commit | ceddddeb2bb052d8fada40c9efcd1564f60f7dcc | [log] [tgz] |
---|---|---|
author | Eugene Kliuchnikov <eustas@google.com> | Mon Aug 22 15:59:08 2016 +0200 |
committer | Eugene Kliuchnikov <eustas@google.com> | Mon Aug 22 15:59:08 2016 +0200 |
tree | 81a6d170e8ca4524bf7302d6dd3044bb499626c9 | |
parent | 2c2d5578a6a65819deeeea64aeaf3e911038a9f5 [diff] |
Fix setup.py regexp
diff --git a/setup.py b/setup.py index 5e4278b..b36a439 100644 --- a/setup.py +++ b/setup.py
@@ -20,7 +20,7 @@ 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: