Commit 94acc161 authored by Stefan Behnel's avatar Stefan Behnel

Reformat code.

parent 949b4133
...@@ -35,13 +35,13 @@ iso_c99_keywords = set( ...@@ -35,13 +35,13 @@ iso_c99_keywords = set(
def c_safe_identifier(cname): def c_safe_identifier(cname):
# There are some C limitations on struct entry names. # There are some C limitations on struct entry names.
if ((cname[:2] == '__' if ((cname[:2] == '__' and not (cname.startswith(Naming.pyrex_prefix)
and not (cname.startswith(Naming.pyrex_prefix) or cname in ('__weakref__', '__dict__')))
or cname in ('__weakref__', '__dict__'))) or cname in iso_c99_keywords):
or cname in iso_c99_keywords):
cname = Naming.pyrex_prefix + cname cname = Naming.pyrex_prefix + cname
return cname return cname
class BufferAux(object): class BufferAux(object):
writable_needed = False writable_needed = False
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment