Merge pull request #424 from colinba/develop
Fix crash when running pyqtgraph with python -OO
This commit is contained in:
commit
fab19b7ad4
@ -27,6 +27,7 @@ Gradients = OrderedDict([
|
|||||||
def addGradientListToDocstring():
|
def addGradientListToDocstring():
|
||||||
"""Decorator to add list of current pre-defined gradients to the end of a function docstring."""
|
"""Decorator to add list of current pre-defined gradients to the end of a function docstring."""
|
||||||
def dec(fn):
|
def dec(fn):
|
||||||
|
if fn.__doc__ is not None:
|
||||||
fn.__doc__ = fn.__doc__ + str(Gradients.keys()).strip('[').strip(']')
|
fn.__doc__ = fn.__doc__ + str(Gradients.keys()).strip('[').strip(']')
|
||||||
return fn
|
return fn
|
||||||
return dec
|
return dec
|
||||||
|
Loading…
Reference in New Issue
Block a user