mirror of
https://github.com/certbot/certbot.git
synced 2026-08-02 08:03:19 +02:00
Fix Pylint upgrade issues
* Remove unsupported pylint disable options
* star-args removed in Pylint 1.4.3
* abstract-class-little-used removed in Pylint 1.4.3
* Fixes new lint errors
* Copy dummy-variable-rgx expression to new ignored-argument-names expression to ignore unused funtion arguments
* Notable changes
* Refactor to satisfy Pylint no-else-return warning
* Fix Pylint inconsistent-return-statements warning
* Refactor to satisfy consider-iterating-dictionary
* Remove methods with only super call to satisfy useless-super-delegation
* Refactor too-many-nested-statements where possible
* Suppress type checked errors where member is dynamically added (notably derived from josepy.JSONObjectWithFields)
* Remove None default of func parameter for ExitHandler and ErrorHandler
Resolves #5973
This commit is contained in:
+3
-3
@@ -107,7 +107,7 @@ class AccountMemoryStorage(interfaces.AccountStorage):
|
||||
def find_all(self):
|
||||
return list(six.itervalues(self.accounts))
|
||||
|
||||
def save(self, account, acme):
|
||||
def save(self, account, client):
|
||||
# pylint: disable=unused-argument
|
||||
if account.id in self.accounts:
|
||||
logger.debug("Overwriting account: %s", account.id)
|
||||
@@ -193,8 +193,8 @@ class AccountFileStorage(interfaces.AccountStorage):
|
||||
account_id, acc.id))
|
||||
return acc
|
||||
|
||||
def save(self, account, acme):
|
||||
self._save(account, acme, regr_only=False)
|
||||
def save(self, account, client):
|
||||
self._save(account, client, regr_only=False)
|
||||
|
||||
def save_regr(self, account, acme):
|
||||
"""Save the registration resource.
|
||||
|
||||
Reference in New Issue
Block a user