mirror of
https://github.com/google/brotli.git
synced 2026-02-15 05:35:14 +00:00
Fix setup.py regexp
This commit is contained in:
2
setup.py
2
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:
|
||||
|
||||
Reference in New Issue
Block a user