Commit fd4db973522378b15e6b85bddb807dc644e58a4d
Exists in
master
Merge branch 'devel'
Showing
2 changed files
with
3 additions
and
3 deletions
Show diff stats
src/PortGlosa.py
@@ -79,4 +79,4 @@ def ajuda(): | @@ -79,4 +79,4 @@ def ajuda(): | ||
79 | if __name__ == '__main__': | 79 | if __name__ == '__main__': |
80 | texto = sys.argv[1] | 80 | texto = sys.argv[1] |
81 | glosa = traduzir(texto) | 81 | glosa = traduzir(texto) |
82 | - sys.exit(glosa) | ||
83 | \ No newline at end of file | 82 | \ No newline at end of file |
83 | + print glosa | ||
84 | \ No newline at end of file | 84 | \ No newline at end of file |
src/TraduzSentencas.py
@@ -29,7 +29,7 @@ class TraduzSentencas(object): | @@ -29,7 +29,7 @@ class TraduzSentencas(object): | ||
29 | try: | 29 | try: |
30 | analise_sintatica = alexp.run(sentenca) | 30 | analise_sintatica = alexp.run(sentenca) |
31 | except Exception as ex: | 31 | except Exception as ex: |
32 | - self.salvar_log(str(traceback.format_exc())) | 32 | + #self.salvar_log(str(traceback.format_exc())) |
33 | analise_sintatica = None | 33 | analise_sintatica = None |
34 | 34 | ||
35 | analise_morfologica = alexp.getAnaliseMorfologica() | 35 | analise_morfologica = alexp.getAnaliseMorfologica() |
@@ -55,4 +55,4 @@ class TraduzSentencas(object): | @@ -55,4 +55,4 @@ class TraduzSentencas(object): | ||
55 | '''Salva traceback de uma excessão do analisador sintático | 55 | '''Salva traceback de uma excessão do analisador sintático |
56 | ''' | 56 | ''' |
57 | logging.error(erro) | 57 | logging.error(erro) |
58 | - | ||
59 | \ No newline at end of file | 58 | \ No newline at end of file |
59 | + |