diff options
| author | jvoisin | 2016-08-29 22:14:33 +0200 |
|---|---|---|
| committer | jvoisin | 2016-08-29 22:14:33 +0200 |
| commit | fe64fb6251fba7ea58df5ce9a5404558ad41786b (patch) | |
| tree | d0fd944c0a12c9b0c239f7ea978e62728da88c03 /mat-gui | |
| parent | 64b667be5d6b36d17839482593ccf2207af14ac9 (diff) | |
Take care of the GUIpython3
Diffstat (limited to 'mat-gui')
| -rwxr-xr-x | mat-gui | 7 |
1 files changed, 4 insertions, 3 deletions
| @@ -22,7 +22,7 @@ except ImportError: # python3 | |||
| 22 | from libmat import mat | 22 | from libmat import mat |
| 23 | from libmat import strippers | 23 | from libmat import strippers |
| 24 | from libmat import parser | 24 | from libmat import parser |
| 25 | from libmat import archive | 25 | #from libmat import archive |
| 26 | 26 | ||
| 27 | logging.basicConfig(level=mat.LOGGING_LEVEL) | 27 | logging.basicConfig(level=mat.LOGGING_LEVEL) |
| 28 | 28 | ||
| @@ -432,8 +432,9 @@ non-anonymised) file from output archive')) | |||
| 432 | msg = _('Cleaning %s') % self.liststore[line][1].decode('utf-8', 'replace') | 432 | msg = _('Cleaning %s') % self.liststore[line][1].decode('utf-8', 'replace') |
| 433 | logging.info(msg) | 433 | logging.info(msg) |
| 434 | self.statusbar.push(0, msg) | 434 | self.statusbar.push(0, msg) |
| 435 | is_archive = isinstance(self.liststore[line][0].file, archive.GenericArchiveStripper) | 435 | #is_archive = isinstance(self.liststore[line][0].file, archive.GenericArchiveStripper) |
| 436 | is_terminal = isinstance(self.liststore[line][0].file, archive.TerminalZipStripper) | 436 | #is_terminal = isinstance(self.liststore[line][0].file, archive.TerminalZipStripper) |
| 437 | is_archive = is_terminal = True | ||
| 437 | list_to_add = [] | 438 | list_to_add = [] |
| 438 | if is_archive and not is_terminal: | 439 | if is_archive and not is_terminal: |
| 439 | unsupported_list = self.liststore[line][0].file.list_unsupported() | 440 | unsupported_list = self.liststore[line][0].file.list_unsupported() |
