def deprecated_attr(namespace, attr, replacement):
 _deprecated_attrs.setdefault(namespace, []).append((attr, replacement))

def deprecated_attr ( namespace , attr , replacement ) : _deprecated_attrs . setdefault ( namespace , [ ] ) . append ( ( attr , replacement ) )
marks a module level attribute as deprecated .