mirror of
https://github.com/certbot/certbot.git
synced 2026-07-27 08:09:10 +02:00
Lintmonster
This commit is contained in:
@@ -130,6 +130,7 @@ def register(config, account_storage, tos_cb=None):
|
||||
|
||||
return acc, acme
|
||||
|
||||
|
||||
def perform_registration(acme, config):
|
||||
"""
|
||||
Actually register new account, trying repeatedly if there are email
|
||||
@@ -153,6 +154,7 @@ def perform_registration(acme, config):
|
||||
else:
|
||||
raise
|
||||
|
||||
|
||||
class Client(object):
|
||||
"""ACME protocol client.
|
||||
|
||||
|
||||
@@ -104,6 +104,7 @@ class NcursesDisplay(object):
|
||||
|
||||
return code, int(tag) - 1
|
||||
|
||||
|
||||
def input(self, message):
|
||||
"""Display an input box to the user.
|
||||
|
||||
@@ -116,10 +117,11 @@ class NcursesDisplay(object):
|
||||
"""
|
||||
sections = message.split("\n")
|
||||
# each section takes at least one line, plus extras if it's longer than self.width
|
||||
wordlines = [1+(len(section)/self.width) for section in sections]
|
||||
height = 6+ sum(wordlines) + len(sections)
|
||||
wordlines = [1 + (len(section)/self.width) for section in sections]
|
||||
height = 6 + sum(wordlines) + len(sections)
|
||||
return self.dialog.inputbox(message, width=self.width, height=height)
|
||||
|
||||
|
||||
def yesno(self, message, yes_label="Yes", no_label="No"):
|
||||
"""Display a Yes/No dialog box.
|
||||
|
||||
|
||||
Reference in New Issue
Block a user