diff options
author | Peter A. Bigot <pabigot@users.sourceforge.net> | 2010-05-29 23:22:41 -0500 |
---|---|---|
committer | Peter A. Bigot <pabigot@users.sourceforge.net> | 2010-05-29 23:22:41 -0500 |
commit | 323bc770cc1cde586bbae55d9139632fb9c2ae9c (patch) | |
tree | b31a57ab1e9abd2669b22eeb0ef1bf1feb44dc15 | |
parent | 7283ba59db23850b840e3cf0c8626f8866857e60 (diff) |
Create namespace if necessary
-rw-r--r-- | pyxb/binding/content.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/pyxb/binding/content.py b/pyxb/binding/content.py index ea681dd..7f133af 100644 --- a/pyxb/binding/content.py +++ b/pyxb/binding/content.py @@ -974,8 +974,8 @@ class Wildcard (ContentState_mixin): if nsv is None: return None if isinstance(nsv, basestring): - nsv = pyxb.namespace.NamespaceForURI(nsv) - assert isinstance(nsv, pyxb.namespace.Namespace) + nsv = pyxb.namespace.NamespaceForURI(nsv, create_if_missing=True) + assert isinstance(nsv, pyxb.namespace.Namespace), 'unexpected non-namespace %s' % (nsv,) return nsv def __init__ (self, *args, **kw): |