diff options
| author | jvoisin | 2013-03-06 13:23:52 +0100 |
|---|---|---|
| committer | jvoisin | 2013-03-06 13:23:52 +0100 |
| commit | b7848465cb833c36843921e32fa4903fe2bc73f4 (patch) | |
| tree | 19a9a57baa0239217ddddca171083e8a436e5d81 /MAT/archive.py | |
| parent | 16487c064343d6d0f710d7b0ca8f7060b4289528 (diff) | |
Some minor syntastic sugar
Diffstat (limited to 'MAT/archive.py')
| -rw-r--r-- | MAT/archive.py | 11 |
1 files changed, 5 insertions, 6 deletions
diff --git a/MAT/archive.py b/MAT/archive.py index 1dcddef..8127665 100644 --- a/MAT/archive.py +++ b/MAT/archive.py | |||
| @@ -47,16 +47,15 @@ class ZipStripper(GenericArchiveStripper): | |||
| 47 | Check if a ZipInfo object is clean of metadatas added | 47 | Check if a ZipInfo object is clean of metadatas added |
| 48 | by zip itself, independently of the corresponding file metadatas | 48 | by zip itself, independently of the corresponding file metadatas |
| 49 | ''' | 49 | ''' |
| 50 | if fileinfo.comment != '': | 50 | if fileinfo.comment: |
| 51 | return False | 51 | return False |
| 52 | elif fileinfo.date_time != 0: | 52 | elif fileinfo.date_time: |
| 53 | return False | 53 | return False |
| 54 | elif fileinfo.create_system != 0: | 54 | elif fileinfo.create_system: |
| 55 | return False | 55 | return False |
| 56 | elif fileinfo.create_version != 0: | 56 | elif fileinfo.create_version: |
| 57 | return False | 57 | return False |
| 58 | else: | 58 | return True |
| 59 | return True | ||
| 60 | 59 | ||
| 61 | def is_clean(self): | 60 | def is_clean(self): |
| 62 | ''' | 61 | ''' |
