17 lines
671 B
Diff
17 lines
671 B
Diff
|
Index: M2Crypto-0.27.0/setup.py
|
||
|
===================================================================
|
||
|
--- M2Crypto-0.27.0.orig/setup.py
|
||
|
+++ M2Crypto-0.27.0/setup.py
|
||
|
@@ -48,7 +48,10 @@ def _get_additional_includes():
|
||
|
stdout=subprocess.PIPE,
|
||
|
stderr=subprocess.PIPE)
|
||
|
_, err = pid.communicate()
|
||
|
- err = [line.lstrip() for line in err.split('\n') if line and line[0] == ' ']
|
||
|
+ if sys.version_info[0] == 2:
|
||
|
+ err = [line.lstrip() for line in err.split('\n') if line and line[0] == ' ']
|
||
|
+ else:
|
||
|
+ err = [line.lstrip() for line in err.split(b'\n') if line and line[0] == b' ']
|
||
|
return err
|
||
|
|
||
|
|