def find_credential(self, url):
for repository, cred in self.creds_by_repository.items():<EOL><INDENT>if url.startswith(repository):<EOL><INDENT>return cred<EOL><DEDENT><DEDENT>
If the URL indicated appears to be a repository defined in this
config, return the credential for that repository.