]> git.pld-linux.org Git - packages/brotli.git/blame - brotli-py2.patch
- added py2 patch (restore setup.py compatibility with python2.7), cleanup
[packages/brotli.git] / brotli-py2.patch
CommitLineData
45ad4c6f
JB
1--- brotli-1.1.0/setup.py.orig 2023-08-29 13:00:29.000000000 +0200
2+++ brotli-1.1.0/setup.py 2023-11-08 19:42:16.251391487 +0100
3@@ -27,7 +27,7 @@ def read_define(path, macro):
4 """ Return macro value from the given file. """
5 with open(path, 'r') as f:
6 for line in f:
7- m = re.match(rf'#define\s{macro}\s+(.+)', line)
8+ m = re.match(r'#define\s{macro}\s+(.+)'.format(macro=macro), line)
9 if m:
10 return m.group(1)
11 return ''
12@@ -41,7 +41,7 @@ def get_version():
13 patch = read_define(version_file_path, 'BROTLI_VERSION_PATCH')
14 if not major or not minor or not patch:
15 return ''
16- return f'{major}.{minor}.{patch}'
17+ return '{major}.{minor}.{patch}'.format(major=major, minor=minor, patch=patch)
18
19
20 def get_test_suite():
This page took 0.043741 seconds and 4 git commands to generate.