[Zope3-checkins] CVS: ZODB4/Persistence - Class.py:1.12
Jeremy Hylton
jeremy@zope.com
Thu, 12 Dec 2002 16:54:29 -0500
Update of /cvs-repository/ZODB4/Persistence
In directory cvs.zope.org:/tmp/cvs-serv24439
Modified Files:
Class.py
Log Message:
Use boolean for _pc_init.
=== ZODB4/Persistence/Class.py 1.11 => 1.12 ===
--- ZODB4/Persistence/Class.py:1.11 Thu Dec 12 16:53:58 2002
+++ ZODB4/Persistence/Class.py Thu Dec 12 16:54:28 2002
@@ -217,7 +217,7 @@
__implements__ = IPersistent
- _pc_init = 0
+ _pc_init = False
def __new__(meta, name, bases, dict):
cls = super(PersistentClassMetaClass, meta).__new__(
@@ -244,7 +244,7 @@
if isinstance(v, PersistentFunction):
setattr(cls, k, PersistentDescriptor(cls, v))
- cls._pc_init = 1
+ cls._pc_init = True
return cls
def fixup(cls, mod):