Skip to content
Snippets Groups Projects
Commit e47315e8 authored by Andreas Klöckner's avatar Andreas Klöckner
Browse files

Placate PEP8 naming

parent 20cd3ddd
No related branches found
No related tags found
No related merge requests found
......@@ -29,13 +29,13 @@ def to_python_literal(value):
def defines_to_python_code(defines_str):
import re
DEFINE_RE = re.compile(r"^\#define\s+([a-zA-Z0-9_]+)\s+(.*)$")
define_re = re.compile(r"^\#define\s+([a-zA-Z0-9_]+)\s+(.*)$")
result = []
for l in defines_str.split("\n"):
if not l.strip():
continue
match = DEFINE_RE.match(l)
match = define_re.match(l)
if match is None:
raise RuntimeError("#define not understood: '%s'" % l)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment