Skip to content

Commit 43bbf78

Browse files
committed
un-delete changed to restore
1 parent ef4e73c commit 43bbf78

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

patterns/behavioral/command.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,7 @@ def undo(self):
7777
if len(self._deleted_files) > 0:
7878
filename = self._deleted_files.pop()
7979

80-
print(f'un-deleting {filename}')
80+
print(f'restoring {filename}')
8181

8282
os.rename(f'{self._deleted_files_path}/{filename}', filename)
8383

@@ -115,9 +115,9 @@ def main():
115115
>>> item2.on_do_press(test_file_name)
116116
test-file does not exists to hide
117117
118-
# un-deleting `test-file`
118+
# restoring `test-file`
119119
>>> item1.on_undo_press()
120-
un-deleting test-file
120+
restoring test-file
121121
122122
# hiding `test-file`
123123
>>> item2.on_do_press(test_file_name)

0 commit comments

Comments
 (0)