[Zope-Checkins] CVS: ZODB3/ZEO/auth - base.py:1.4

Christian Reis kiko@async.com.br
Mon, 28 Jul 2003 01:04:49 -0400


Update of /cvs-repository/ZODB3/ZEO/auth
In directory cvs.zope.org:/tmp/cvs-serv9397/ZEO/auth

Modified Files:
	base.py 
Log Message:
Handle empty password files gracefully.


=== ZODB3/ZEO/auth/base.py 1.3 => 1.4 ===
--- ZODB3/ZEO/auth/base.py:1.3	Sun Jul 27 23:43:26 2003
+++ ZODB3/ZEO/auth/base.py	Mon Jul 28 01:04:44 2003
@@ -83,6 +83,10 @@
         
         fd = open(filename)
         L = fd.readlines()
+
+        if not L:
+            return
+
         if L[0].startswith("realm "):
             line = L.pop(0).strip()
             self.realm = line[len("realm "):]