# coding: utf-8
from __future__ import unicode_literals

"""
A registry of all documents.
"""

_documents_registry = {}


def get_document(name, module=None):
    if module:
        name = '{}.{}'.format(module, name)
    return _documents_registry[name]


def put_document(name, document_cls, module=None):
    if module:
        name = '{}.{}'.format(module, name)
    _documents_registry[name] = document_cls

@@ -49,17 +49,16 @@
 iterals%0A
-%0A
 %22%22%22%0AA re
@@ -175,35 +175,37 @@
        name = '%7B
+0
 %7D.%7B
+1
 %7D'.format(module
@@ -334,19 +334,21 @@
 ame = '%7B
+0
 %7D.%7B
+1
 %7D'.forma

Fix incompatibility with Python 2.6