Slightly more efficient to just print the string.

This commit is contained in:
Simon Forman 2020-05-17 11:51:59 -07:00
parent 5dea9349f0
commit 40f8e4505d
1 changed files with 1 additions and 1 deletions

View File

@ -167,7 +167,7 @@ class StackWorld(StackDisplayWorld):
self.viewer.update_stack(self.stack)
def print_stack(self):
print('%s . ' % stack_to_string(self.stack), end='')
print(stack_to_string(self.stack), '', end=' ')
if self.viewer:
self.viewer.update_stack(self.stack)