MCPcopy
hub / github.com/celery/celery / _find_path

Method _find_path

celery/backends/filesystem.py:60–67  ·  view source on GitHub ↗
(self, url)

Source from the content-addressed store, hash-verified

58 return super().__reduce__(args, {**kwargs, 'url': self.url})
59
60 def _find_path(self, url):
61 if not url:
62 raise ImproperlyConfigured(E_NO_PATH_SET)
63 if url.startswith('file://localhost/'):
64 return url[16:]
65 if url.startswith('file://'):
66 return url[7:]
67 raise ImproperlyConfigured(E_PATH_NON_CONFORMING_SCHEME)
68
69 def _do_directory_test(self, key):
70 try:

Callers 1

__init__Method · 0.95

Calls 1

Tested by

no test coverage detected