[Zodb-checkins] CVS: ZODB3/ThreadedAsync - LoopCallback.py:1.8

Barry Warsaw barry@wooz.org
Thu, 12 Dec 2002 16:15:43 -0500


Update of /cvs-repository/ZODB3/ThreadedAsync
In directory cvs.zope.org:/tmp/cvs-serv8568

Modified Files:
	LoopCallback.py 
Log Message:
Sigh.  ZODB4 and ZODB3 share this package exactly, so we can't enable
the warnings until the other fixes are ported to ZODB4.

Added an XXX to memind me.


=== ZODB3/ThreadedAsync/LoopCallback.py 1.7 => 1.8 ===
--- ZODB3/ThreadedAsync/LoopCallback.py:1.7	Thu Dec 12 14:48:06 2002
+++ ZODB3/ThreadedAsync/LoopCallback.py	Thu Dec 12 16:15:42 2002
@@ -157,12 +157,15 @@
 # break 3rd party code.  So we'll issue a warning and let it continue -- for
 # now.
 
-def deprecated_loop(*args, **kws):
-    import warnings
-    warnings.warn("""\
-ThreadedAsync.loop() called through sneaky asyncore.loop() rebinding.
-You should change your code to call ThreadedAsync.loop() explicitly.""",
-                  DeprecationWarning)
-    loop(*args, **kws)
+##def deprecated_loop(*args, **kws):
+##    import warnings
+##    warnings.warn("""\
+##ThreadedAsync.loop() called through sneaky asyncore.loop() rebinding.
+##You should change your code to call ThreadedAsync.loop() explicitly.""",
+##                  DeprecationWarning)
+##    loop(*args, **kws)
 
-asyncore.loop = deprecated_loop
+##asyncore.loop = deprecated_loop
+
+# XXX Remove this once we've updated ZODB4 since they share this package
+asyncore.loop = loop