[Zope3-checkins] CVS: Zope3/src/zope/app/pythonpage -
__init__.py:1.6
Dmitry Vasiliev
dima at hlabs.spb.ru
Thu Mar 25 09:37:42 EST 2004
Update of /cvs-repository/Zope3/src/zope/app/pythonpage
In directory cvs.zope.org:/tmp/cvs-serv20405/src/zope/app/pythonpage
Modified Files:
__init__.py
Log Message:
Changes:
- RuntimeInfo updated
- PythonPage bug: 'compile() don't accept "\r"'
- Russian translation updated
=== Zope3/src/zope/app/pythonpage/__init__.py 1.5 => 1.6 ===
--- Zope3/src/zope/app/pythonpage/__init__.py:1.5 Mon Mar 8 18:54:59 2004
+++ Zope3/src/zope/app/pythonpage/__init__.py Thu Mar 25 09:37:09 2004
@@ -74,7 +74,7 @@
>>> pp(request)
u'<html>...</html>\n'
- >>> pp.setSource(u"if 1 == 1:\n '''<html>...</html>'''")
+ >>> pp.setSource(u"if 1 == 1:\r\r\n\n '''<html>...</html>'''")
>>> pp(request)
u'<html>...</html>\n'
@@ -131,6 +131,9 @@
self.__source = source
source = source.encode('utf-8')
+ # compile() don't accept '\r' altogether
+ source = source.replace("\r\n", "\n")
+ source = source.replace("\r", "\n")
start = 0
match = triple_quotes_start.search(source, start)
while match:
More information about the Zope3-Checkins
mailing list