diff options
| author | jvoisin | 2022-10-09 21:12:57 +0200 |
|---|---|---|
| committer | jvoisin | 2022-10-09 21:14:20 +0200 |
| commit | 6d93cf9397479c03c8414a42521987249471975e (patch) | |
| tree | 52c2e88d4bca1bc1181083e6f48d897bac628803 /libmat2 | |
| parent | b1a16b334f468a8197dd996289fb62d02a1749ad (diff) | |
Remove deprecated pylint checks
Diffstat (limited to 'libmat2')
| -rw-r--r-- | libmat2/archive.py | 6 | ||||
| -rw-r--r-- | libmat2/web.py | 1 |
2 files changed, 3 insertions, 4 deletions
diff --git a/libmat2/archive.py b/libmat2/archive.py index 17ec608..5f058b9 100644 --- a/libmat2/archive.py +++ b/libmat2/archive.py | |||
| @@ -72,20 +72,20 @@ class ArchiveBasedAbstractParser(abstract.AbstractParser): | |||
| 72 | def _specific_cleanup(self, full_path: str) -> bool: | 72 | def _specific_cleanup(self, full_path: str) -> bool: |
| 73 | """ This method can be used to apply specific treatment | 73 | """ This method can be used to apply specific treatment |
| 74 | to files present in the archive.""" | 74 | to files present in the archive.""" |
| 75 | # pylint: disable=unused-argument,no-self-use | 75 | # pylint: disable=unused-argument |
| 76 | return True # pragma: no cover | 76 | return True # pragma: no cover |
| 77 | 77 | ||
| 78 | def _specific_get_meta(self, full_path: str, file_path: str) -> dict[str, Any]: | 78 | def _specific_get_meta(self, full_path: str, file_path: str) -> dict[str, Any]: |
| 79 | """ This method can be used to extract specific metadata | 79 | """ This method can be used to extract specific metadata |
| 80 | from files present in the archive.""" | 80 | from files present in the archive.""" |
| 81 | # pylint: disable=unused-argument,no-self-use | 81 | # pylint: disable=unused-argument |
| 82 | return {} # pragma: no cover | 82 | return {} # pragma: no cover |
| 83 | 83 | ||
| 84 | def _final_checks(self) -> bool: | 84 | def _final_checks(self) -> bool: |
| 85 | """ This method is invoked after the file has been cleaned, | 85 | """ This method is invoked after the file has been cleaned, |
| 86 | allowing to run final verifications. | 86 | allowing to run final verifications. |
| 87 | """ | 87 | """ |
| 88 | # pylint: disable=unused-argument,no-self-use | 88 | # pylint: disable=unused-argument |
| 89 | return True | 89 | return True |
| 90 | 90 | ||
| 91 | @staticmethod | 91 | @staticmethod |
diff --git a/libmat2/web.py b/libmat2/web.py index d324996..574bdd7 100644 --- a/libmat2/web.py +++ b/libmat2/web.py | |||
| @@ -103,7 +103,6 @@ class _HTMLParser(parser.HTMLParser): | |||
| 103 | self.tag_required_blocklist = required_blocklisted_tags | 103 | self.tag_required_blocklist = required_blocklisted_tags |
| 104 | self.tag_blocklist = blocklisted_tags | 104 | self.tag_blocklist = blocklisted_tags |
| 105 | 105 | ||
| 106 | # pylint: disable=R0201 | ||
| 107 | def error(self, message): # pragma: no cover | 106 | def error(self, message): # pragma: no cover |
| 108 | """ Amusingly, Python's documentation doesn't mention that this | 107 | """ Amusingly, Python's documentation doesn't mention that this |
| 109 | function needs to be implemented in subclasses of the parent class | 108 | function needs to be implemented in subclasses of the parent class |
