mirror of
https://github.com/certbot/certbot.git
synced 2026-07-28 08:05:31 +02:00
Fix pylint errors or comment unused invalid code.
augeas_configurator.py: E:220,12: Too many positional arguments for function call (too-many-function-args) client.py: E:628,18: Instance of 'Client' has no 'get_cas' member (no-member) interactive_challenge.py: E: 35,29: Instance of 'Interactive_Challenge' has no 'reason' member (no-member)
This commit is contained in:
@@ -217,7 +217,7 @@ class AugeasConfigurator(configurator.Configurator):
|
||||
try:
|
||||
os.rename(cp_dir, final_dir)
|
||||
except:
|
||||
logger.error("Unable to finalize checkpoint, %s -> %s" % cp_dir, final_dir)
|
||||
logger.error("Unable to finalize checkpoint, %s -> %s" % (cp_dir, final_dir))
|
||||
return False
|
||||
return True
|
||||
|
||||
|
||||
@@ -624,16 +624,16 @@ class Client(object):
|
||||
return key_pem, csr_pem
|
||||
|
||||
|
||||
def choice_of_ca(self):
|
||||
choices = self.get_cas()
|
||||
message = "Pick a Certificate Authority. They're all unique and special!"
|
||||
in_txt = "Enter the number of a Certificate Authority (c to cancel): "
|
||||
code, selection = display.generic_menu(message, choices, in_txt)
|
||||
# def choice_of_ca(self):
|
||||
# choices = self.get_cas()
|
||||
# message = "Pick a Certificate Authority. They're all unique and special!"
|
||||
# in_txt = "Enter the number of a Certificate Authority (c to cancel): "
|
||||
# code, selection = display.generic_menu(message, choices, in_txt)
|
||||
|
||||
if code != display.OK:
|
||||
sys.exit(0)
|
||||
# if code != display.OK:
|
||||
# sys.exit(0)
|
||||
|
||||
return selection
|
||||
# return selection
|
||||
|
||||
# Legacy Code: Although I would like to see a free and open marketplace
|
||||
# in the future. The Let's Encrypt Client will not have this feature at
|
||||
|
||||
@@ -31,5 +31,5 @@ class Interactive_Challenge(challenge.Challenge):
|
||||
def get_display_string(self):
|
||||
return textwrap.fill(self.string, width=self.BOX_SIZE) + "\n\nPlease Press Enter to Continue"
|
||||
|
||||
def formatted_reasons(self):
|
||||
return "\n\t* %s\n", self.reason
|
||||
# def formatted_reasons(self):
|
||||
# return "\n\t* %s\n", self.reason
|
||||
|
||||
Reference in New Issue
Block a user