File libserf-python3-2.patch of Package libserf
------------------------------------------------------------------------
r1814604 | astieger | 2017-11-08 18:05:28 +0100 (Wed, 08 Nov 2017) | 5 lines
Changed paths:
M /serf/trunk/SConstruct
Follow-up to r1811083, fix building with scons 3.0.0 and Python3
* SConstruct: Append decode('utf-8) to FILE.get_contents() to avoid
TypeError: cannot use a string pattern on a bytes-like object
------------------------------------------------------------------------
Index: trunk/SConstruct
===================================================================
--- trunk/SConstruct (revision 1814603)
+++ trunk/SConstruct (revision 1814604)
@@ -182,7 +182,7 @@
match = re.search('SERF_MAJOR_VERSION ([0-9]+).*'
'SERF_MINOR_VERSION ([0-9]+).*'
'SERF_PATCH_VERSION ([0-9]+)',
- env.File('serf.h').get_contents(),
+ env.File('serf.h').get_contents().decode('utf-8'),
re.DOTALL)
MAJOR, MINOR, PATCH = [int(x) for x in match.groups()]
env.Append(MAJOR=str(MAJOR))