Remove debug output

This commit is contained in:
Théophile Bastian 2020-05-07 13:16:26 +02:00
parent 7f8a53e05c
commit b154c79ece

View file

@ -20,17 +20,12 @@ class VimSession:
self.file_path = file_path self.file_path = file_path
def apply_patchset(self, patchset): def apply_patchset(self, patchset):
print("Applying patchset…", file=sys.stderr)
for patch in patchset: for patch in patchset:
print("Asking to apply patch…", file=sys.stderr)
self.apply_patch(patch) self.apply_patch(patch)
def apply_patch(self, patch): def apply_patch(self, patch):
source = patch.source.decode("utf8") source = patch.source.decode("utf8")
target = patch.target.decode("utf8") target = patch.target.decode("utf8")
print(
"Applying patch on {} -> {}.".format(source, target), file=sys.stderr,
)
if source != target: if source != target:
self.tmux_session.type_keys( self.tmux_session.type_keys(
"escape", ":!mv ", source, " ", target, "enter", "escape", ":!mv ", source, " ", target, "enter",