[Zope-Checkins] CVS: Zope2 - Publish.py:1.149
Jim Fulton
jim@digicool.com
Sun, 1 Apr 2001 13:47:06 -0400 (EDT)
Update of /cvs-repository/Zope2/lib/python/ZPublisher
In directory korak:/tmp/cvs-serv11023
Modified Files:
Publish.py
Log Message:
Moved a global declaration to the top of a function to make Python2.1 happy.
--- Updated File Publish.py in package Zope2 --
--- Publish.py 2001/02/23 20:40:45 1.148
+++ Publish.py 2001/04/01 17:47:04 1.149
@@ -377,6 +377,7 @@
def publish_module(module_name, stdin=sys.stdin, stdout=sys.stdout,
stderr=sys.stderr, environ=os.environ, debug=0,
request=None, response=None):
+ global _pstat
_plock.acquire()
try:
if request is not None:
@@ -392,7 +393,6 @@
result=sys._pr_
pobj.create_stats()
if _pstat is None:
- global _pstat
_pstat=sys._ps_=pstats.Stats(pobj)
else: _pstat.add(pobj)
finally: