From 8f999fdba81b28bec9a341a50b673c4848a598fa Mon Sep 17 00:00:00 2001 From: Christian Clauss Date: Fri, 14 May 2021 14:08:35 +0200 Subject: [PATCH] print() is a function in Python 3 --- run_fake_soap_server.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/run_fake_soap_server.py b/run_fake_soap_server.py index 8a1b90d..ec76806 100644 --- a/run_fake_soap_server.py +++ b/run_fake_soap_server.py @@ -2,6 +2,7 @@ """Este script deve ser executado com Python 2.6+ e OpenSSL""" +from __future__ import print_function import os, datetime CUR_DIR = os.path.dirname(os.path.abspath(__file__)) @@ -39,7 +40,7 @@ class HandlerStatusServico(tornado.web.RequestHandler): tag = extrair_tag(raiz.getroot().getchildren()[0].getchildren()[0]) # Chama o método respectivo para a tag - print 'Metodo:', tag + print('Metodo:', tag) getattr(self, tag)(raiz) def nfeStatusServicoNF2(self, raiz): @@ -92,4 +93,3 @@ if __name__ == '__main__': http_server = tornado.httpserver.HTTPServer(application, ssl_options=ssl_options) http_server.listen(porta) tornado.ioloop.IOLoop.instance().start() -