History

python/lib/gen_code.py: fix regression from previous commit

Paul Brossier committed 10 years ago

Commit b71e8b61 parent 659900b1 file · +3 −0Browse files

Showing the changes to python/lib/gen_code.py (1 of 1 file). Show all

Unified · Split

python/lib/gen_code.py+3−0
@@ -289,6 +289,9 @@ Py_{shortname}_new (PyTypeObject * pytype, PyObject * args, PyObject * kwds) · 288 unmodified lines
289 name = p['name']289 name = p['name']
290 return """290 return """
291 self->{name} = {defval};291 self->{name} = {defval};
292 if ({name} != NULL) {{
293 self->{name} = {name};
294 }}
292""".format(defval = aubiodefvalue[name], name = name)295""".format(defval = aubiodefvalue[name], name = name)
293 296
294 def check_valid_smpl(self, p):297 def check_valid_smpl(self, p):

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t