Skip to content

Commit

Permalink
Documentation/sphinx: remove unnecessary temporary variable
Browse files Browse the repository at this point in the history
Leftover cruft. No functional changes.

Signed-off-by: Jani Nikula <[email protected]>
  • Loading branch information
jnikula committed Jun 10, 2016
1 parent c9b2cfb commit 06173fe
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions Documentation/sphinx/kernel-doc.py
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,6 @@ def run(self):
env.note_dependency(os.path.abspath(filename))

tab_width = self.options.get('tab-width', self.state.document.settings.tab_width)
source = filename

# FIXME: make this nicer and more robust against errors
if 'export' in self.options:
Expand Down Expand Up @@ -105,7 +104,7 @@ def run(self):
lineoffset = int(match.group(1)) - 1
# we must eat our comments since the upset the markup
else:
result.append(line, source, lineoffset)
result.append(line, filename, lineoffset)
lineoffset += 1

node = nodes.section()
Expand Down

0 comments on commit 06173fe

Please sign in to comment.