From 9469a59718c36f188d2042ceb2534491ca0e552e Mon Sep 17 00:00:00 2001 From: Matteo Cypriani Date: Tue, 16 Oct 2018 10:31:15 +0200 Subject: [PATCH] gcp: vertical spacing --- gcp | 10 ++-------- 1 file changed, 2 insertions(+), 8 deletions(-) diff --git a/gcp b/gcp index b5a33e7..1dd8200 100755 --- a/gcp +++ b/gcp @@ -81,7 +81,6 @@ const_JOURNAL_PATH = const_FILES_DIR + "/journal" const_SAVED_LIST = const_FILES_DIR + "/saved_list" - class DbusObject(dbus.service.Object): def __init__(self, gcp, bus, path): @@ -116,7 +115,9 @@ class DbusObject(dbus.service.Object): return (False, _("INTERNAL ERROR: invalid source_dir")) return self._gcp.parseArguments(args, source_dir) + class Journal(): + def __init__(self, path=const_JOURNAL_PATH): self.journal_path = os.path.expanduser(path) self.journal_fd = open(self.journal_path,'w') #TODO: check and maybe save previous journals @@ -183,8 +184,6 @@ class Journal(): info(_("Please check journal: %s") % self.journal_path) - - class GCP(): def __init__(self): @@ -258,7 +257,6 @@ class GCP(): error(_("Can't copy %(path)s: %(exception)s") % {'path':path, 'exception':e.strerror}) - def __appendDirToList(self, dirpath, dest_path, options): """Add recursively directory to the copy list @param path: absolute path of dir @@ -377,8 +375,6 @@ class GCP(): source_fd.close() dest_fd.close() - - def _copyFile(self, source_fd, condition, data): """Actually copy the file, callback used with io_add_watch @param source_fd: file descriptor of the file to copy @@ -520,7 +516,6 @@ class GCP(): if not args: exit(0) - if options.sources_list or options.sources_full_list: info(_('Saved sources:')) sources = list(saved_files.keys()) @@ -752,4 +747,3 @@ if __name__ == "__main__": exit(1) if gcp.journal.partial: exit(2) -