Skip to content

Commit

Permalink
xml2nroff: Don't use built-in function name.
Browse files Browse the repository at this point in the history
Don't use "input" as a variable name, as input is a built-in Python
function.

Signed-off-by: Russell Bryant <[email protected]>
Acked-by: Justin Pettit <[email protected]>
  • Loading branch information
russellb committed Dec 11, 2015
1 parent e78cd62 commit 138bc37
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions build-aux/xml2nroff
Original file line number Diff line number Diff line change
Expand Up @@ -42,12 +42,12 @@ The following options are also available:

def manpage_to_nroff(xml_file, subst, version=None):
f = open(xml_file)
input = []
content = []
for line in f:
for k, v in subst.iteritems():
line = line.replace(k, v)
input += [line]
doc = xml.dom.minidom.parseString(''.join(input)).documentElement
content += [line]
doc = xml.dom.minidom.parseString(''.join(content)).documentElement

if version is None:
version = "UNKNOWN"
Expand Down

0 comments on commit 138bc37

Please sign in to comment.