diff options
author | Fred Drake <fdrake@acm.org> | 2001-09-25 20:57:36 (GMT) |
---|---|---|
committer | Fred Drake <fdrake@acm.org> | 2001-09-25 20:57:36 (GMT) |
commit | 9eda3aebb825e3652333962b1498174a049c937f (patch) | |
tree | 0a341e708085a207ae130dc0ef53b23a3afc2503 | |
parent | cc91ac09efa5dc269ac1d8c55ffd64f1a6812870 (diff) | |
download | cpython-9eda3aebb825e3652333962b1498174a049c937f.zip cpython-9eda3aebb825e3652333962b1498174a049c937f.tar.gz cpython-9eda3aebb825e3652333962b1498174a049c937f.tar.bz2 |
Simplify a helper by returning fewer values.
-rwxr-xr-x | Doc/tools/sgmlconv/latex2esis.py | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/Doc/tools/sgmlconv/latex2esis.py b/Doc/tools/sgmlconv/latex2esis.py index e694f56..c33c4d5 100755 --- a/Doc/tools/sgmlconv/latex2esis.py +++ b/Doc/tools/sgmlconv/latex2esis.py @@ -185,11 +185,10 @@ class Conversion: if topentry.outputname: self.write(")%s\n-\\n\n" % topentry.outputname) # - if entry.outputname: - if entry.empty: - self.write("e\n") + if entry.outputname and entry.empty: + self.write("e\n") # - params, optional, empty, environ = self.start_macro(macroname) + params, optional, empty = self.start_macro(macroname) # rip off the macroname if params: line = line[m.end(1):] @@ -363,7 +362,7 @@ class Conversion: conversion = self.get_entry(name) parameters = conversion.parameters optional = parameters and parameters[0].optional - return parameters, optional, conversion.empty, conversion.environment + return parameters, optional, conversion.empty def get_entry(self, name): entry = self.table.get(name) |