[Zope3-checkins] CVS: Zope3/src/zope/app/fssync - syncer.py:1.8

Guido van Rossum guido@python.org
Thu, 8 May 2003 15:48:26 -0400


Update of /cvs-repository/Zope3/src/zope/app/fssync
In directory cvs.zope.org:/tmp/cvs-serv29350

Modified Files:
	syncer.py 
Log Message:
Fix a bug introduced by previous patch: for plain strings, use
readFile(), not loadFile().


=== Zope3/src/zope/app/fssync/syncer.py 1.7 => 1.8 ===
--- Zope3/src/zope/app/fssync/syncer.py:1.7	Thu May  8 11:29:58 2003
+++ Zope3/src/zope/app/fssync/syncer.py	Thu May  8 15:48:26 2003
@@ -238,7 +238,7 @@
 
         elif not factory:
             if entry.get('type') == '__builtin__.str':
-                newOb = loadFile(path)
+                newOb = readFile(path)
                 _setItem(container, name, newOb, old=1)
             else:
                 # Special case pickle data