Skip to content

Commit 23b8bf2

Browse files
committed
common line substitution less verbose
1 parent 9d42341 commit 23b8bf2

1 file changed

Lines changed: 1 addition & 7 deletions

File tree

yarnrunner_python/runner.py

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -221,13 +221,7 @@ def __run_line(self, instruction):
221221
for _i in range(diff - 1):
222222
self._line_buffer.append('')
223223

224-
self._line_buffer.append(
225-
self._make_line_substitutions(
226-
self.__lookup_string(string_key), line_substitutions))
227-
228-
@staticmethod
229-
def _make_line_substitutions(line, substitutions):
230-
return line.format(*substitutions)
224+
self._line_buffer.append(self.__lookup_string(string_key).format(*line_substitutions))
231225

232226
def __run_command(self, instruction):
233227
# split the command specifier by spaces, ignoring spaces

0 commit comments

Comments
 (0)