[Zope-Checkins] CVS: Zope - z2.py:1.77
Andreas Jung
andreas@digicool.com
Sun, 23 Jun 2002 12:10:01 -0400
Update of /cvs-repository/Zope
In directory cvs.zope.org:/tmp/cvs-serv30832
Modified Files:
z2.py
Log Message:
fixed some wrong isinstance() conversations
=== Zope/z2.py 1.76 => 1.77 ===
' because no emergency user exists.')
if pw:
- if ininstance(MONITOR_PORT, IntType):
+ if isinstance(MONITOR_PORT, IntType):
MONITOR_PORT=((IP_ADDRESS, MONITOR_PORT),)
for address, port in MONITOR_PORT:
monitor=secure_monitor_server(
@@ -792,10 +792,10 @@
try: UID = string.atoi(UID)
except: pass
gid = None
- if instance(UID, StringType):
+ if isinstance(UID, StringType):
uid = pwd.getpwnam(UID)[2]
gid = pwd.getpwnam(UID)[3]
- elif instance(UID, IntType):
+ elif isinstance(UID, IntType):
uid = pwd.getpwuid(UID)[2]
gid = pwd.getpwuid(UID)[3]
UID = pwd.getpwuid(UID)[0]