/usr/lib/python2.7/dist-packages/formtools/wizard/storage/__init__.py is in python-django-formtools 1.0+20160714.git54f1ccca01-1.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 | from django.utils.module_loading import import_string
from .base import BaseStorage
from .exceptions import MissingStorage, NoFileStorageConfigured
__all__ = [
"BaseStorage", "MissingStorage", "NoFileStorageConfigured", "get_storage",
]
def get_storage(path, *args, **kwargs):
try:
storage_class = import_string(path)
except ImportError as e:
raise MissingStorage('Error loading storage: %s' % e)
return storage_class(*args, **kwargs)
|