[core] Remove internationalization of log message in runcherrypy
@@ -25,7 +25,6 @@ from django.core.management.base import BaseCommand
from desktop import conf
from desktop.lib.daemon_utils import drop_privileges_if_necessary
-from django.utils.translation import ugettext as _
CPSERVER_HELP = r"""
@@ -51,7 +50,7 @@ CPSERVER_OPTIONS = {
class Command(BaseCommand):
- help = _("CherryPy Server for Desktop.")
+ help = "CherryPy Server for Desktop."
args = ""
def handle(self, *args, **options):
@@ -104,7 +103,7 @@ def start_server(options):
if isinstance(server.socket, SSLConnection):
ciphers = server.socket.get_cipher_list()
- logging.info(_("List of enabled ciphers: {}").format(':'.join(ciphers)))
+ logging.info("List of enabled ciphers: {}".format(':'.join(ciphers)))
server.listen_and_loop()
except KeyboardInterrupt:
@@ -127,7 +126,7 @@ def runcpserver(argset=[], **kwargs):
return
# Start the webserver
- logging.info(_("Starting server with options:\n{}").format(pprint.pformat(options)))
+ logging.info("Starting server with options:\n{}".format(pprint.pformat(options)))
start_server(options)
