mirror of
https://github.com/python/cpython.git
synced 2024-11-29 21:05:33 +08:00
Simplify a helper by returning fewer values.
This commit is contained in:
parent
cc91ac09ef
commit
9eda3aebb8
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user