summaryrefslogtreecommitdiffstats
path: root/Documentation/sphinx
diff options
context:
space:
mode:
authorJani Nikula <jani.nikula@intel.com>2016-06-08 10:25:40 +0300
committerJani Nikula <jani.nikula@intel.com>2016-06-10 11:29:21 +0300
commit057de5c4dd536bdf29275ec75910737087594860 (patch)
tree8e15ec83b611482f942c0e7888d3dcefa683eb84 /Documentation/sphinx
parent06173fe33a3fd239540bd188f1f12a39e99b6c83 (diff)
downloadlinux-057de5c4dd536bdf29275ec75910737087594860.tar.gz
linux-057de5c4dd536bdf29275ec75910737087594860.tar.bz2
linux-057de5c4dd536bdf29275ec75910737087594860.zip
Documentation/sphinx: use a more sensible string split in kernel-doc extension
Using the default str.split doesn't return empty strings like the current version does. Signed-off-by: Jani Nikula <jani.nikula@intel.com>
Diffstat (limited to 'Documentation/sphinx')
-rw-r--r--Documentation/sphinx/kernel-doc.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/Documentation/sphinx/kernel-doc.py b/Documentation/sphinx/kernel-doc.py
index 2856376cc62c..d6a76f9a0ba5 100644
--- a/Documentation/sphinx/kernel-doc.py
+++ b/Documentation/sphinx/kernel-doc.py
@@ -68,7 +68,7 @@ class KernelDocDirective(Directive):
elif 'doc' in self.options:
cmd += ['-function', str(self.options.get('doc'))]
elif 'functions' in self.options:
- for f in str(self.options.get('functions')).split(' '):
+ for f in str(self.options.get('functions')).split():
cmd += ['-function', f]
cmd += [filename]