[Zope3-checkins] CVS: Zope3/src/zope/app/interpreter - python.py:1.5
Stephan Richter
srichter at cosmos.phy.tufts.edu
Wed Feb 25 17:59:00 EST 2004
Update of /cvs-repository/Zope3/src/zope/app/interpreter
In directory cvs.zope.org:/tmp/cvs-serv28417/src/zope/app/interpreter
Modified Files:
python.py
Log Message:
Inline code would not run under Windows. goopot, who tested Zope using
cygwin today, reported the problem and verified this fix.
=== Zope3/src/zope/app/interpreter/python.py 1.4 => 1.5 ===
--- Zope3/src/zope/app/interpreter/python.py:1.4 Mon Feb 2 10:03:41 2004
+++ Zope3/src/zope/app/interpreter/python.py Wed Feb 25 17:58:29 2004
@@ -49,7 +49,7 @@
code = code.strip()[4:-3]
# Prepare code.
- lines = code.split('\n')
+ lines = code.splitlines()
lines = filter(lambda l: l.strip() != '', lines)
code = '\n'.join(lines)
# This saves us from all indentation issues :)
More information about the Zope3-Checkins
mailing list