Browse Source

gcp: vertical spacing

Matteo Cypriani 5 months ago
parent
commit
9469a59718
1 changed files with 2 additions and 8 deletions
  1. 2
    8
      gcp

+ 2
- 8
gcp View File

@@ -81,7 +81,6 @@ const_JOURNAL_PATH = const_FILES_DIR + "/journal"
81 81
 const_SAVED_LIST = const_FILES_DIR + "/saved_list"
82 82
 
83 83
 
84
-
85 84
 class DbusObject(dbus.service.Object):
86 85
 
87 86
     def __init__(self, gcp, bus, path):
@@ -116,7 +115,9 @@ class DbusObject(dbus.service.Object):
116 115
             return (False, _("INTERNAL ERROR: invalid source_dir"))
117 116
         return self._gcp.parseArguments(args, source_dir)
118 117
 
118
+
119 119
 class Journal():
120
+
120 121
     def __init__(self, path=const_JOURNAL_PATH):
121 122
         self.journal_path = os.path.expanduser(path)
122 123
         self.journal_fd = open(self.journal_path,'w') #TODO: check and maybe save previous journals
@@ -183,8 +184,6 @@ class Journal():
183 184
             info(_("Please check journal: %s") % self.journal_path)
184 185
 
185 186
 
186
-
187
-
188 187
 class GCP():
189 188
 
190 189
     def __init__(self):
@@ -258,7 +257,6 @@ class GCP():
258 257
             error(_("Can't copy %(path)s: %(exception)s")
259 258
                   % {'path':path, 'exception':e.strerror})
260 259
 
261
-
262 260
     def __appendDirToList(self, dirpath, dest_path, options):
263 261
         """Add recursively directory to the copy list
264 262
         @param path: absolute path of dir
@@ -377,8 +375,6 @@ class GCP():
377 375
         source_fd.close()
378 376
         dest_fd.close()
379 377
 
380
-
381
-
382 378
     def _copyFile(self, source_fd, condition, data):
383 379
         """Actually copy the file, callback used with io_add_watch
384 380
         @param source_fd: file descriptor of the file to copy
@@ -520,7 +516,6 @@ class GCP():
520 516
             if not args:
521 517
                 exit(0)
522 518
 
523
-
524 519
         if options.sources_list or options.sources_full_list:
525 520
             info(_('Saved sources:'))
526 521
             sources = list(saved_files.keys())
@@ -752,4 +747,3 @@ if __name__ == "__main__":
752 747
             exit(1)
753 748
         if gcp.journal.partial:
754 749
             exit(2)
755
-

Loading…
Cancel
Save