mirror of
https://github.com/avatao-content/test-tutorial-framework
synced 2025-01-15 23:41:56 +00:00
Make app.py comply pylint
This commit is contained in:
parent
8169f5e220
commit
5edb203fed
@ -7,15 +7,14 @@ from sql_injection_fsm import SQLInjectionFSM
|
|||||||
from tfw.networking.server.tfw_server import TFWServer
|
from tfw.networking.server.tfw_server import TFWServer
|
||||||
from tfw.config import TFWENV
|
from tfw.config import TFWENV
|
||||||
from tfw.config.logs import logging
|
from tfw.config.logs import logging
|
||||||
log = logging.getLogger(__name__)
|
LOG = logging.getLogger(__name__)
|
||||||
|
|
||||||
|
|
||||||
if __name__ == '__main__':
|
if __name__ == '__main__':
|
||||||
server = TFWServer(SQLInjectionFSM)
|
TFWServer(SQLInjectionFSM).listen(TFWENV.WEB_PORT)
|
||||||
server.listen(TFWENV.WEB_PORT)
|
LOG.debug('Python version: %s', sys.version[:5])
|
||||||
log.debug('Python version: {}'.format(sys.version[:5]))
|
LOG.debug('Tornado version: %s', tornado.version)
|
||||||
log.debug('Tornado version: {}'.format(tornado.version))
|
LOG.debug('ZeroMQ version: %s', zmq.zmq_version())
|
||||||
log.debug('ZeroMQ version: {}'.format(zmq.zmq_version()))
|
LOG.debug('PyZMQ version: %s', zmq.pyzmq_version())
|
||||||
log.debug('PyZMQ version: {}'.format(zmq.pyzmq_version()))
|
LOG.info('Tornado application listening on port %s', TFWENV.WEB_PORT)
|
||||||
log.info('Tornado application listening on port {}'.format(TFWENV.WEB_PORT))
|
|
||||||
IOLoop.instance().start()
|
IOLoop.instance().start()
|
||||||
|
Loading…
Reference in New Issue
Block a user