[Zope3-checkins] CVS: Packages/ZConfig - matcher.py:1.1.2.24

Fred L. Drake, Jr. fred@zope.com
Thu, 19 Dec 2002 09:12:47 -0500


Update of /cvs-repository/Packages/ZConfig
In directory cvs.zope.org:/tmp/cvs-serv8564

Modified Files:
      Tag: zconfig-schema-devel-branch
	matcher.py 
Log Message:
Use the length of a list that exists rather than an undefined variable.

=== Packages/ZConfig/matcher.py 1.1.2.23 => 1.1.2.24 ===
--- Packages/ZConfig/matcher.py:1.1.2.23	Wed Dec 18 11:15:59 2002
+++ Packages/ZConfig/matcher.py	Thu Dec 19 09:12:46 2002
@@ -114,7 +114,7 @@
                 if len(v) < ci.minOccurs:
                     raise ZConfig.ConfigurationError(
                         "not enough values for %s; %d found, %d required"
-                        % (`key`, len(L), ci.minOccurs))
+                        % (`key`, len(v), ci.minOccurs))
             if v is None and not ci.issection():
                 if ci.ismulti():
                     v = ci.getdefault()[:]