Browse Source

(pylint) fix

pull/233/head
Oliverpool 9 years ago
parent
commit
b994f91d35
  1. 8
      patacrep/latex/syntax.py

8
patacrep/latex/syntax.py

@ -1,8 +1,8 @@
"""Very simple LaTeX parser""" """Very simple LaTeX parser"""
import logging import logging
import ply.yacc as yacc
from functools import lru_cache from functools import lru_cache
import ply.yacc as yacc
from patacrep.latex import ast from patacrep.latex import ast
from patacrep.latex.detex import detex from patacrep.latex.detex import detex
@ -223,9 +223,9 @@ def tex2plain(string):
"""Parse string and return its plain text version.""" """Parse string and return its plain text version."""
return detex( return detex(
latex_yacc().parse( latex_yacc().parse(
string, string,
lexer=SimpleLexer().lexer, lexer=SimpleLexer().lexer,
) )
) )
def parse_song(content, filename=None): def parse_song(content, filename=None):

Loading…
Cancel
Save