diff options
| author | jvoisin | 2012-12-13 22:34:49 +0100 |
|---|---|---|
| committer | jvoisin | 2012-12-13 22:34:49 +0100 |
| commit | 614b07d5166a1718ac4d492384490d33c4087f49 (patch) | |
| tree | b984f7d162183acb2ed4cdd260c0a6d720b70998 /mat-gui | |
| parent | f80ca88a4d07183531bc6be89e9c016423da9109 (diff) | |
Minor style improvement
Diffstat (limited to 'mat-gui')
| -rwxr-xr-x | mat-gui | 6 |
1 files changed, 3 insertions, 3 deletions
| @@ -291,7 +291,7 @@ class GUI: | |||
| 291 | return False | 291 | return False |
| 292 | 292 | ||
| 293 | cf = CFile(filename, self.backup, self.add2archive) | 293 | cf = CFile(filename, self.backup, self.add2archive) |
| 294 | if cf.file is not None: # if the file is supported by the mat | 294 | if cf.file: # if the file is supported by the mat |
| 295 | self.liststore.append([cf, os.path.dirname(cf.file.filename) + os.path.sep, | 295 | self.liststore.append([cf, os.path.dirname(cf.file.filename) + os.path.sep, |
| 296 | cf.file.basename, cf.file.mime, _('unknow'), 'None']) | 296 | cf.file.basename, cf.file.mime, _('unknow'), 'None']) |
| 297 | return False | 297 | return False |
| @@ -538,7 +538,7 @@ non-anonymised) file to output archive')) | |||
| 538 | ''' | 538 | ''' |
| 539 | for line in iterator: # for each file in selection | 539 | for line in iterator: # for each file in selection |
| 540 | self.statusbar.push(0, _('Checking %s...') % self.liststore[line][1]) | 540 | self.statusbar.push(0, _('Checking %s...') % self.liststore[line][1]) |
| 541 | if self.force is True or self.liststore[line][4] != _('Clean'): | 541 | if self.force or self.liststore[line][4] != _('Clean'): |
| 542 | if self.liststore[line][0].file.is_clean(): | 542 | if self.liststore[line][0].file.is_clean(): |
| 543 | string = _('Clean') | 543 | string = _('Clean') |
| 544 | else: | 544 | else: |
| @@ -556,7 +556,7 @@ non-anonymised) file to output archive')) | |||
| 556 | for line in iterator: # for each file in selection | 556 | for line in iterator: # for each file in selection |
| 557 | logging.info('Cleaning %s' % self.liststore[line][1]) | 557 | logging.info('Cleaning %s' % self.liststore[line][1]) |
| 558 | self.statusbar.push(0, _('Cleaning %s...') % self.liststore[line][1]) | 558 | self.statusbar.push(0, _('Cleaning %s...') % self.liststore[line][1]) |
| 559 | if self.force is True or self.liststore[line][4] != _('Clean'): | 559 | if self.force or self.liststore[line][4] != _('Clean'): |
| 560 | if self.liststore[line][0].file.remove_all(): | 560 | if self.liststore[line][0].file.remove_all(): |
| 561 | self.liststore[line][4] = _('Clean') | 561 | self.liststore[line][4] = _('Clean') |
| 562 | if self.backup: # the backup copy state | 562 | if self.backup: # the backup copy state |
