[Zodb-checkins] CVS: Zope3/src/zodb/code - module.py:1.8
Jeremy Hylton
jeremy@zope.com
Tue, 28 Jan 2003 16:24:35 -0500
Update of /cvs-repository/Zope3/src/zodb/code
In directory cvs.zope.org:/tmp/cvs-serv12342
Modified Files:
module.py
Log Message:
Try to prevent compilation errors from files without trailing
newlines.
=== Zope3/src/zodb/code/module.py 1.7 => 1.8 ===
--- Zope3/src/zodb/code/module.py:1.7 Wed Jan 15 15:06:00 2003
+++ Zope3/src/zodb/code/module.py Tue Jan 28 16:24:32 2003
@@ -142,6 +142,9 @@
setattr(parent, modname, self._module)
def update(self, source):
+ # Try to prevent compilation errors from files without trailing
+ # newlines.
+ source += "\n"
self._module._p_changed = True
moddict = self._module.__dict__
old_names = NameFinder(self._module)