[Zope-Checkins] CVS: Zope/lib/python/Zope/Startup - handlers.py:1.2.2.3
Fred L. Drake, Jr.
fred@zope.com
Tue, 11 Feb 2003 15:09:28 -0500
Update of /cvs-repository/Zope/lib/python/Zope/Startup
In directory cvs.zope.org:/tmp/cvs-serv28360
Modified Files:
Tag: new-install-branch
handlers.py
Log Message:
- don't use the types module since we don't need to
- use_daemon_process(): no longer used
=== Zope/lib/python/Zope/Startup/handlers.py 1.2.2.2 => 1.2.2.3 ===
--- Zope/lib/python/Zope/Startup/handlers.py:1.2.2.2 Wed Feb 5 18:29:43 2003
+++ Zope/lib/python/Zope/Startup/handlers.py Tue Feb 11 15:09:27 2003
@@ -1,12 +1,11 @@
import os
-import types
from misc.factory import Factory
# top-level key handlers
def _setenv(name, value):
- if isinstance(value, types.StringTypes):
+ if isinstance(value, str):
os.environ[name] = value
else:
os.environ[name] = `value`
@@ -49,10 +48,6 @@
def locale(value):
import locale
locale.setlocale(locale.LC_ALL, value)
- return value
-
-def use_daemon_process(value):
- value and _setenv('Z_DEBUG_MODE', '1')
return value
def zserver_read_only_mode(value):