Commit cf0b7a51 authored by Stefan Behnel's avatar Stefan Behnel

Use Py3 syntax in generated Cython code fragment.

parent 9ab8d28f
...@@ -1572,7 +1572,7 @@ cdef class NAME: ...@@ -1572,7 +1572,7 @@ cdef class NAME:
count = 0 count = 0
INIT_ASSIGNMENTS INIT_ASSIGNMENTS
if IS_UNION and count > 1: if IS_UNION and count > 1:
raise ValueError, "At most one union member should be specified." raise ValueError("At most one union member should be specified.")
def __str__(self): def __str__(self):
return STR_FORMAT % MEMBER_TUPLE return STR_FORMAT % MEMBER_TUPLE
def __repr__(self): def __repr__(self):
......
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