Did I find the right examples for you? yes no

All Samples(10)  |  Call(5)  |  Derive(0)  |  Import(5)

        def uri_to_filename(uri):
    if uri_is_remote(uri):
        return None

    if uri.startswith("file://"):
        return uri[uri.find("file://") + len("file://"):]

    return uri
        


src/c/v/CVSAnalY-HEAD/pycvsanaly2/main.py   CVSAnalY(Download)

src/m/i/MininGit-HEAD/pycvsanaly2/main.py   MininGit(Download)
    InvalidDependency)
from Config import Config, ErrorLoadingConfig
from utils import printerr, printout, uri_to_filename, printdbg
from _config import *
from DBDeletionHandler import DBDeletionHandler
        repositoryhandler.backends.DEBUG = True
 
    path = uri_to_filename(uri)
    (uri, repo) = _get_uri_and_repo(path)
 

src/g/u/guilty-HEAD/guilty/main.py   guilty(Download)
from outputdevs import create_output_device, OutputDeviceError, OutputDeviceUnknownError
from optparse import OptionParser, Values
from utils import uri_is_remote, uri_to_filename, svn_uri_is_file, printerr, read_from_stdin
from _config import *
import os, sys
 
    # Create repository
    path = uri_to_filename (uri)
    if path is not None:
        try:

src/c/v/CVSAnalY-HEAD/pycvsanaly2/Log.py   CVSAnalY(Download)

src/m/i/MininGit-HEAD/pycvsanaly2/Log.py   MininGit(Download)
    import sys
    import os
    from utils import uri_to_filename
    from repositoryhandler.backends import (create_repository, 
                                            create_repository_from_path)
            user_data.add_line(line)
 
    path = uri_to_filename(sys.argv[1])
    if path is not None:
        repo = create_repository_from_path(path)