Documentation/sphinx: use a more sensible string split in kernel-doc extension
authorJani Nikula <jani.nikula@intel.com>
Wed, 8 Jun 2016 07:25:40 +0000 (10:25 +0300)
committerJani Nikula <jani.nikula@intel.com>
Fri, 10 Jun 2016 08:29:21 +0000 (11:29 +0300)
Using the default str.split doesn't return empty strings like the
current version does.

Signed-off-by: Jani Nikula <jani.nikula@intel.com>
Documentation/sphinx/kernel-doc.py

index 2856376cc62c93fe8c0e96906ccdbe5c078f5ae9..d6a76f9a0ba5a8bcc1e554cd080ae893278891b2 100644 (file)
@@ -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]