phfaist / pylatexenc

Simple LaTeX parser providing latex-to-unicode and unicode-to-latex conversion
https://pylatexenc.readthedocs.io
MIT License
301 stars 37 forks source link

Update print statements to python 3 print() function #2

Closed scholer closed 7 years ago

scholer commented 7 years ago

Another syntax error on Python 3.6:

  File "/Users/rasmus/Dev/repos-others/pylatexenc/pylatexenc/latex2text.py", line 667
    print "Please type some latex text (Ctrl+D twice to stop) ..."
                                                                 ^
SyntaxError: invalid syntax

To fix, convert print statements to use the print(...). Add from __future__ import print_function at the top to retain python2 compatability.