<s> import os <EOL> from urlparse import urlparse <EOL> from lockfile import FileLock <EOL> from . import CatalogCoordinator <EOL> class FilesystemCatalogCoordinator ( CatalogCoordinator ) : <EOL> def _index_lock_path ( self ) : <EOL> return os . path . join ( self . path , '<STR_LIT>' ) <EOL> def get_index_lock ( self , ** kwargs ) : <EOL> return FileLock ( self . _index_lock_path ( ) ) <EOL> @ property <EOL> def path ( self ) : <EOL> return urlparse ( self . url ) . path <EOL> @ classmethod <EOL> def valid_url ( cls , url ) : <EOL> urlcomps = urlparse ( url ) <EOL> return urlcomps . scheme == '<STR_LIT:file>' </s>
