[Zope3-checkins] CVS: Zope3/lib/python/ZODB - ConflictResolution.py:1.19
Jeremy Hylton
jeremy@zope.com
Wed, 4 Dec 2002 16:58:50 -0500
Update of /cvs-repository/Zope3/lib/python/ZODB
In directory cvs.zope.org:/tmp/cvs-serv19767
Modified Files:
ConflictResolution.py
Log Message:
Move metaclass declaration to the top.
=== Zope3/lib/python/ZODB/ConflictResolution.py 1.18 => 1.19 ===
--- Zope3/lib/python/ZODB/ConflictResolution.py:1.18 Mon Dec 2 14:17:00 2002
+++ Zope3/lib/python/ZODB/ConflictResolution.py Wed Dec 4 16:58:49 2002
@@ -16,6 +16,8 @@
# because conflict resolution depends (for efficiency and safety) on
# working with the raw object state instead of instantiated objects.
+__metaclass__ = type
+
from cStringIO import StringIO
from cPickle import Pickler, PicklingError
@@ -23,8 +25,6 @@
from ZODB.Serialize import BaseObjectReader, ObjectWriter, getClassMetadata
ResolvedSerial = "rs"
-
-__metaclass__ = type
class ResolvedObjectAdapter:
"""Adapt an object's raw state to the ObjectWriter protocol.