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

Fred L. Drake, Jr. fred@zope.com
Thu, 19 Dec 2002 16:11:25 -0500


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

Modified Files:
      Tag: zconfig-schema-devel-branch
	matcher.py 
Log Message:
construct():  Don't attempt to convert an omitted value.


=== Packages/ZConfig/matcher.py 1.1.2.26 => 1.1.2.27 ===
--- Packages/ZConfig/matcher.py:1.1.2.26	Thu Dec 19 12:35:31 2002
+++ Packages/ZConfig/matcher.py	Thu Dec 19 16:11:22 2002
@@ -169,7 +169,9 @@
                 for key, val in v.items():
                     v[key] = ci.datatype(val)
             else:
-                v = ci.datatype(values[i])
+                v = values[i]
+                if v is not None:
+                    v = ci.datatype(v)
             values[i] = v
             if ci.handler is not None:
                 self._handlers.append((ci.handler, v))