You can't switch from regex to re by just replacing regex by re. Both modules use different notations for regular expressions and have a *different* API. Stay tuned until Zope 2.4 - this will be regex/regsub free. I am currently working on this stuff. Andreas Jung Digitial Creations ----- Original Message ----- From: "Peter Bengtsson" <peter@grenna.net> To: <phd@phd.fep.ru> Cc: <zope@zope.org> Sent: Friday, April 20, 2001 5:41 AM Subject: RE: [Zope] Zope on Python 2.1
Take the risk of search-replace all occurances of "regex" with "re". "regex" is a pretty "odd" word so it's unlikely to find it inside other words. Let us know if that worked.
-----Message d'origine----- De : zope-admin@zope.org [mailto:zope-admin@zope.org]De la part de Oleg Broytmann Envoye : vendredi 20 avril 2001 11:14 A : Zope Mailing List Objet : [Zope] Zope on Python 2.1
Hello!
I did a quick test on how Zope would run on Python 2.1. I didn't do extensive tests, but at first glance it works without a problem. I've got some deprecation warnings:
/usr/local/Zope/ZServer/medusa/asynchat.py:293: DeprecationWarning: the regex module is deprecated; please use the re module import regex /usr/local/lib/python2.1/regsub.py:15: DeprecationWarning: the regsub module is deprecated; please use re.sub() DeprecationWarning) /usr/local/Zope/ZServer/medusa/asynchat.py:293: DeprecationWarning: the regex module is deprecated; please use the re module import regex /usr/local/lib/python2.1/regsub.py:15: DeprecationWarning: the regsub module is deprecated; please use re.sub() DeprecationWarning)
Oleg. ---- Oleg Broytmann http://phd.pp.ru/ phd@phd.pp.ru Programmers don't die, they just GOSUB without RETURN.
_______________________________________________ Zope maillist - Zope@zope.org http://lists.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope-dev )
_______________________________________________ Zope maillist - Zope@zope.org http://lists.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope-dev )