[Zope-Checkins] CVS: Zope/lib/python/ZPublisher - Publish.py:1.152

Andreas Jung andreas@zope.com
Thu, 25 Oct 2001 10:54:13 -0400


Update of /cvs-repository/Zope/lib/python/ZPublisher
In directory cvs.zope.org:/tmp/cvs-serv7829/lib/python/ZPublisher

Modified Files:
	Publish.py 
Log Message:
more cleanup


=== Zope/lib/python/ZPublisher/Publish.py 1.151 => 1.152 ===
 
             # Check for debug mode
+            debug_mode=None
             if hasattr(module,'__bobo_debug_mode__'):
                 debug_mode=not not module.__bobo_debug_mode__
-            elif:
+            else:
 
                 z1 = os.environ.get('Z_DEBUG_MODE',None)
                 z2 = os.environ.get('BOBO_DEBUG_MODE',None)
@@ -293,10 +294,7 @@
                     debug_mode = 1
                 elif z2.lower() in ('yes','y') or z2.isdigit():
                     debug_mode = 1
-                else:
-                    debug_mode = None
 
-            else: debug_mode=None
 
             if hasattr(module,'__bobo_before__'):
                 bobo_before=module.__bobo_before__