Skip to content

Commit

Permalink
Merge pull request #39 from SethMMorton/optimized-python-patch
Browse files Browse the repository at this point in the history
Fixed import bug when using python -OO.
  • Loading branch information
SethMMorton committed Jun 4, 2016
2 parents a2a4f27 + aaba1bf commit b68fb2c
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion natsort/compat/py23.py
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,8 @@ def wrapper(func_or_str):
func = func_or_str
doc = func.__doc__

doc = str_change_func(doc)
if doc is not None:
doc = str_change_func(doc)

if func:
func.__doc__ = doc
Expand Down

0 comments on commit b68fb2c

Please sign in to comment.