8b2f9ed
diff -up serf-1.3.9/SConstruct.python3 serf-1.3.9/SConstruct
8b2f9ed
--- serf-1.3.9/SConstruct.python3	2018-07-02 17:21:47.331685070 +0200
8b2f9ed
+++ serf-1.3.9/SConstruct	2018-07-02 17:27:12.316413515 +0200
8b2f9ed
@@ -20,6 +20,8 @@
8b2f9ed
 # ====================================================================
8b2f9ed
 #
8b2f9ed
 
8b2f9ed
+from __future__ import print_function
8b2f9ed
+
8b2f9ed
 import sys
8b2f9ed
 import os
8b2f9ed
 import re
8b2f9ed
@@ -166,7 +168,7 @@ env.Append(BUILDERS = {
8b2f9ed
 match = re.search('SERF_MAJOR_VERSION ([0-9]+).*'
8b2f9ed
                   'SERF_MINOR_VERSION ([0-9]+).*'
8b2f9ed
                   'SERF_PATCH_VERSION ([0-9]+)',
8b2f9ed
-                  env.File('serf.h').get_contents(),
8b2f9ed
+                  env.File('serf.h').get_contents().decode('utf-8'),
8b2f9ed
                   re.DOTALL)
8b2f9ed
 MAJOR, MINOR, PATCH = [int(x) for x in match.groups()]
8b2f9ed
 env.Append(MAJOR=str(MAJOR))
8b2f9ed
@@ -183,7 +185,7 @@ CALLOUT_OKAY = not (env.GetOption('clean
8b2f9ed
 
8b2f9ed
 unknown = opts.UnknownVariables()
8b2f9ed
 if unknown:
8b2f9ed
-  print 'Warning: Used unknown variables:', ', '.join(unknown.keys())
8b2f9ed
+  print('Warning: Used unknown variables:', ', '.join(unknown.keys()))
8b2f9ed
 
8b2f9ed
 apr = str(env['APR'])
8b2f9ed
 apu = str(env['APU'])