RestrictedPython sensitive to line endings in Python 2.4

Bug #143676 reported by ChrisW
2
Affects Status Importance Assigned to Milestone
Zope 2
Fix Released
Medium
ChrisW

Bug Description

Okay, looks like the place where python sorts out line endings has changed in 2.3->2.4.

This now causes problems for Zope when, for example, a ZODB-based python script is edited via FTP or WebDAV from a Windows machine.

You now get a SyntaxError from perfectly valid python.

mj suggests RestrictedPython is the place to solve this. If not, then Products.PythonScripts.PythonScript.PythonScript, at least, should get a fix.

Tags: bug zope
Revision history for this message
ChrisW (chris-simplistix) wrote :

Uploaded: restrictedpython.patch

Here's a patch against 2.9 branch

Revision history for this message
ChrisW (chris-simplistix) wrote :

Status: Accepted => Resolved

Patch applied to both 2.9 branch and trunk.

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.