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:
Jakub Warmuz
2014-11-22 00:22:09 +01:00
parent a62c02a9cf
commit 9cdb7dbae2
3 changed files with 11 additions and 11 deletions
+1 -1
View File
@@ -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
+8 -8
View File
@@ -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
+2 -2
View File
@@ -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