[tlbuild] bengalli ebond.py uses deprecated sre module
George N. White III
gnwiii at gmail.com
Sat May 9 20:44:09 CEST 2009
I have simple script that attempts to make sure inst/bin whatsits can
be executed.
Mostly it trys "program --help" unless the program is known to
interpret --help as input.
For ebong.py I get:
$ ./ebong
./ebong:3: DeprecationWarning: The sre module is deprecated, please import re.
import sre
>From the python 2 release notes:
"Unicode-aware regular expressions are available through the re
module, which has a new underlying implementation called SRE written
by Fredrik Lundh of Secret Labs AB.
A -U command line option was added which causes the Python compiler to
interpret all string literals as Unicode string literals. This is
intended to be used in testing and future-proofing your Python code,
since some future version of Python may drop support for 8-bit strings
and provide only Unicode strings."
The file is: texmf-dist/scripts/bengali/ebong.py
$ grep 'sre' $(find /opt/tex/texlive/svn/Master -name \*.py)
/opt/tex/texlive/svn/Master/texmf-dist/scripts/bengali/ebong.py:import sre
/opt/tex/texlive/svn/Master/texmf-dist/scripts/bengali/ebong.py: m
= sre.findall('@[^@]+@',line)
/opt/tex/texlive/svn/Master/texmf-dist/scripts/bengali/ebong.py: m
= sre.findall('@[^\s]+',line)
/opt/tex/texlive/svn/Master/texmf-dist/scripts/bengali/ebong.py: m
= sre.findall('#AT',line)
There don't appear to be any other .py files in Master that use sre.
Does anybody run TL
scripts under python 1.x? The people who would use bengali aren't
available atm and I
don't have any idea what ebong is supposed to do.
--
George N. White III <aa056 at chebucto.ns.ca>
Head of St. Margarets Bay, Nova Scotia
More information about the tlbuild
mailing list