Commit 98646c8725404469544356aeec2e79c44fccd137

Authored by Erickson Silva
1 parent ffb45245
Exists in master and in 1 other branch devel

Corrige indentação no alexp

Showing 1 changed file with 6 additions and 6 deletions   Show diff stats
src/new/alexp.py
... ... @@ -81,19 +81,19 @@ def corrigeAnotacao(lista):
81 81  
82 82 # a função abaixo parece muito restritiva; talvez não seja necessário
83 83 # que o arquivo esteja no diretório nltk_data
84   -def encontraArquivo(caminho=DIR):
  84 +def encontraArquivo():
85 85 """Encontra arquivo na pasta vlibras-translate.
86 86 """
87 87 so = platform.system()
88   - if so == 'Windows':
89   - return expanduser("~") + "\\vlibras-translate\data\cfg.syn.nltk"
90   - else:
91   - return expanduser("~") + "/vlibras-translate/data/cfg.syn.nltk"
  88 + if so == 'Windows':
  89 + return expanduser("~") + "\\vlibras-translate\data\cfg.syn.nltk"
  90 + else:
  91 + return expanduser("~") + "/vlibras-translate/data/cfg.syn.nltk"
92 92  
93 93 def extraiSintaxe():
94 94 """Extrai gramática armazenada em arquivo cujo caminho é definido relativamente ao diretório nltk_data.
95 95 """
96   - arquivo=encontraArquivo(caminho)
  96 + arquivo=encontraArquivo()
97 97 if arquivo:
98 98 f=open(arquivo,"rU")
99 99 sintaxe=f.read()
... ...