Explorar el Código

Change form get_lexer to guess_lexer -- guess_lexer is more accurate.

tags/v1.0^2
Benjamin Attal hace 10 años
padre
commit
7337638b72
Se han modificado 1 ficheros con 1 adiciones y 1 borrados
  1. +1
    -1
      bitshift/parser/__init__.py

+ 1
- 1
bitshift/parser/__init__.py Ver fichero

@@ -38,7 +38,7 @@ def _lang(codelet):

try:
if codelet.filename:
lex = pgl.get_lexer_for_filename(codelet.filename)
lex = pgl.guess_lexer_for_filename(codelet.filename, codelet.code)
else:
lex = pgl.guess_lexer(codelet.code)
except util.ClassNotFound:


Cargando…
Cancelar
Guardar