diff options
author | Francois Gouget <fgouget@codeweavers.com> | 2016-07-30 08:56:57 +0100 |
---|---|---|
committer | Frediano Ziglio <fziglio@redhat.com> | 2016-07-30 08:57:05 +0100 |
commit | 38047fb46f7e1211bbc20d9a81c8fae19b8f8bf4 (patch) | |
tree | 3aa32aea2e4cd181b37b7dd2518cdaba552e7a9c | |
parent | 22f8dd18f0ee2fd4343a1f38aa1d2e65bf5985cc (diff) |
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@codeweavers.com>
Acked-by: Frediano Ziglio <fziglio@redhat.com>
-rw-r--r-- | python_modules/marshal.py | 2 |
1 files changed, 1 insertions, 1 deletions
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] |