def install(self, backend='<STR_LIT>'):
<EOL>if isinstance(backend, money.six.string_types):<EOL><INDENT>path, name = backend.rsplit('<STR_LIT:.>', <NUM_LIT:1>)<EOL>module = importlib.import_module(path)<EOL>backend = getattr(module, name)()<EOL><DEDENT>elif isinstance(backend, type):<EOL><INDENT>backend = backend()<EOL><DEDENT>if not isinstance(backend, BackendBase):<EOL><INDENT>raise TypeError("<STR_LIT>"<EOL>"<STR_LIT>".format(backend))<EOL><DEDENT>self._backend = backend<EOL>
Install an exchange rates backend using a python path string