##// END OF EJS Templates
Allow IPython to start when PYTHONOPTIMIZE=2...
Thomas Kluyver -
Show More
@@ -47,7 +47,9 b' def _modify_str_or_docstring(str_change_func):'
47 func = func_or_str
47 func = func_or_str
48 doc = func.__doc__
48 doc = func.__doc__
49
49
50 doc = str_change_func(doc)
50 # PYTHONOPTIMIZE=2 strips docstrings, so they can disappear unexpectedly
51 if doc is not None:
52 doc = str_change_func(doc)
51
53
52 if func:
54 if func:
53 func.__doc__ = doc
55 func.__doc__ = doc
General Comments 0
You need to be logged in to leave comments. Login now