Browse Source

Simplify Rx usage

pull/193/head
Oliverpool 9 years ago
parent
commit
e2bdcb9701
  1. 3
      patacrep/content/__init__.py

3
patacrep/content/__init__.py

@ -228,8 +228,7 @@ def validate_parser_argument(raw_schema):
Will raise `ContentError` if the schema is not respected.
"""
rx_checker = Rx.Factory({"register_core_types": True})
schema = rx_checker.make_schema(yaml.load(raw_schema))
schema = Rx.make_schema(yaml.load(raw_schema))
def wrap(parse):
"""Wrap the parse function"""

Loading…
Cancel
Save