summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--natsort/compat/py23.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/natsort/compat/py23.py b/natsort/compat/py23.py
index 31a2944..8155798 100644
--- a/natsort/compat/py23.py
+++ b/natsort/compat/py23.py
@@ -90,7 +90,8 @@ def _modify_str_or_docstring(str_change_func):
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