[bw compat] restore format_constraint into schema file context
authorSylvain Thénault <sylvain.thenault@logilab.fr>
Fri, 07 Aug 2009 16:50:29 +0200
changeset 2742 9439c61eb84c
parent 2741 148d0cea1fb5
child 2743 b0e79a77ad67
[bw compat] restore format_constraint into schema file context
schema.py
--- a/schema.py	Fri Aug 07 16:50:09 2009 +0200
+++ b/schema.py	Fri Aug 07 16:50:29 2009 +0200
@@ -946,3 +946,4 @@
 # XXX deprecated
 from yams.constraints import format_constraint
 from yams.buildobjs import RichString
+PyFileReader.context['format_constraint'] = format_constraint