]> git.pld-linux.org Git - packages/serf.git/blob - python3.patch
rel 6
[packages/serf.git] / python3.patch
1 Fix:
2
3 TypeError: cannot use a string pattern on a bytes-like object:
4 https://github.com/apache/serf/commit/9d30108b630b77f732ef94d1642b159066ffd890
5
6 SyntaxError: Missing parentheses in call to 'print'. Did you mean print(...)?
7 https://github.com/apache/serf/commit/1c0241847e845a8da265aa89f297d3db6ae483b1
8 --- SConstruct.orig     2015-09-17 07:46:24.000000000 -0500
9 +++ SConstruct  2022-08-09 18:04:36.000000000 -0500
10 @@ -167,7 +167,7 @@
11  match = re.search('SERF_MAJOR_VERSION ([0-9]+).*'
12                    'SERF_MINOR_VERSION ([0-9]+).*'
13                    'SERF_PATCH_VERSION ([0-9]+)',
14 -                  env.File('serf.h').get_contents(),
15 +                  env.File('serf.h').get_contents().decode('utf-8'),
16                    re.DOTALL)
17  MAJOR, MINOR, PATCH = [int(x) for x in match.groups()]
18  env.Append(MAJOR=str(MAJOR))
19 @@ -184,7 +184,7 @@
20  
21  unknown = opts.UnknownVariables()
22  if unknown:
23 -  print 'Warning: Used unknown variables:', ', '.join(unknown.keys())
24 +  print('Warning: Used unknown variables:', ', '.join(unknown.keys()))
25  
26  apr = str(env['APR'])
27  apu = str(env['APU'])
This page took 0.155311 seconds and 3 git commands to generate.