[Zope-Checkins] CVS: Zope2 - Compilers.py:1.1.2.7
shane@digicool.com
shane@digicool.com
Fri, 27 Apr 2001 15:48:14 -0400 (EDT)
Update of /cvs-repository/Zope2/lib/python/RestrictedPython
In directory korak:/tmp/cvs-serv14542
Modified Files:
Tag: RestrictedPythonBranch
Compilers.py
Log Message:
Sometimes only one error is reported
--- Updated File Compilers.py in package Zope2 --
--- Compilers.py 2001/04/27 15:18:24 1.1.2.6
+++ Compilers.py 2001/04/27 19:48:12 1.1.2.7
@@ -172,7 +172,8 @@
nested_scopes)
err = r[1]
if err:
- err.pop(0) # Discard first line of error
+ if len(err) > 1:
+ err.pop(0) # Discard first line of error
else:
# Extract the code object representing the function body
r = (r[0].co_consts[1],) + r[1:]