[Spice-commits] python_modules/marshal.py
Frediano Ziglio
fziglio at kemper.freedesktop.org
Sat Jul 30 07:59:41 UTC 2016
python_modules/marshal.py | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
New commits:
commit 38047fb46f7e1211bbc20d9a81c8fae19b8f8bf4
Author: Francois Gouget <fgouget at codeweavers.com>
Date: Sat Jul 30 08:56:57 2016 +0100
codegen: Fix compatibility with Python 2.6
Python 2.6 does not have a flags parameter.
This is needed for RHEL 6.8.
Signed-off-by: Francois Gouget <fgouget at codeweavers.com>
Acked-by: Frediano Ziglio <fziglio at redhat.com>
diff --git a/python_modules/marshal.py b/python_modules/marshal.py
index 0483d3a..402273c 100644
--- a/python_modules/marshal.py
+++ b/python_modules/marshal.py
@@ -11,7 +11,7 @@ def write_includes(writer):
src = writer.header.options["dest_file"]
else:
src = "generated_headers.h"
- src = re.sub(r'[^a-z0-9]+', '_', src, flags=re.IGNORECASE)
+ src = re.sub(r'(?i)[^a-z0-9]+', '_', src)
src = src.upper()
if src.endswith("_H"):
src = "_H_"+src[:-2]
More information about the Spice-commits
mailing list