# HG changeset patch # User Goffi # Date 1605891321 -3600 # Node ID f61e95438050171863f622ba54a2a44a9cca3627 # Parent 10517a8698cab2f0de7af0a716f23b28d7e441af server: don't encode options help messages, this is not needed anymore since we moved to Python 3 diff -r 10517a8698ca -r f61e95438050 twisted/plugins/libervia_server.py --- a/twisted/plugins/libervia_server.py Fri Nov 20 17:53:38 2020 +0100 +++ b/twisted/plugins/libervia_server.py Fri Nov 20 17:55:21 2020 +0100 @@ -104,34 +104,35 @@ # options which are in sat.conf and on command line, # see https://twistedmatrix.com/documents/current/api/twisted.python.usage.Options.html OPT_PARAMETERS_BOTH = [['connection_type', 't', 'https', _("'http', 'https' or 'both' " - "(to launch both servers).").encode('utf-8'), + "(to launch both servers)."), coerceConnectionType], ['port', 'p', 8080, - _('The port number to listen HTTP on.').encode('utf-8'), int], + _('The port number to listen HTTP on.'), int], ['port_https', 's', 8443, - _('The port number to listen HTTPS on.').encode('utf-8'), int], + _('The port number to listen HTTPS on.'), int], ['port_https_ext', 'e', 0, _('The external port number used for ' - 'HTTPS (0 means port_https value).').encode('utf-8'), int], + 'HTTPS (0 means port_https value).'), int], ['tls_private_key', '', '', _('TLS certificate private key (PEM ' - 'format)').encode('utf-8'), coerceUnicode], + 'format)'), coerceUnicode], ['tls_certificate', 'c', 'libervia.pem', _('TLS public ' 'certificate or private key and public certificate combined ' - '(PEM format)').encode('utf-8'), coerceUnicode], + '(PEM format)'), coerceUnicode], ['tls_chain', '', '', _('TLS certificate intermediate chain (PEM ' - 'format)').encode('utf-8'), coerceUnicode], + 'format)'), coerceUnicode], ['redirect_to_https', 'r', True, _('Automatically redirect from ' - 'HTTP to HTTPS.').encode('utf-8'), coerceBool], + 'HTTP to HTTPS.'), coerceBool], ['security_warning', 'w', True, _('Warn user that he is about to ' - 'connect on HTTP.').encode('utf-8'), coerceBool], + 'connect on HTTP.'), coerceBool], ['passphrase', 'k', '', (_("Passphrase for the SàT profile " - "named '%s'") % C.SERVICE_PROFILE).encode('utf-8'), + "named '%s'") % C.SERVICE_PROFILE), coerceUnicode], ['allow_registration', '', True, _('Allow user to register new ' - 'account').encode('utf-8'), coerceBool], + 'account'), coerceBool], ['base_url_ext', '', '', - _('The external URL to use as base URL').encode('utf-8'), + _('The external URL to use as base URL'), coerceUnicode], ] + # Options which are in sat.conf only OPT_PARAMETERS_CFG = [ ["empty_password_allowed_warning_dangerous_list", None, "", None],