Did I find the right examples for you? yes no

All Samples(0)  |  Call(0)  |  Derive(0)  |  Import(0)
str(object='') -> string

Return a nice string representation of the object.
If the argument is a string, the return value is the same object.

src/g/i/git-svn-helpers-0.9/gitsvnhelpers/utils.py   git-svn-helpers(Download)
    package_name = basename()
 
    if exists(config.GIT_CACHE + package_name):
        print "git repository already found in %s%s." % (config.GIT_CACHE,
            package_name)
 
    print "Cloning %s from r%s:%s into %s" % (
        baseurl, first_revision, last_revision, config.GIT_CACHE)
 
    cwd = os.getcwd()
    if not exists(config.GIT_CACHE):
        os.mkdir(config.GIT_CACHE)

src/g/i/git-svn-helpers-HEAD/gitsvnhelpers/utils.py   git-svn-helpers(Download)
    package_name = basename()
 
    if exists(config.GIT_CACHE + package_name):
        print "git repository already found in %s%s." % (config.GIT_CACHE,
            package_name)
 
    print "Cloning %s from r%s:%s into %s" % (
        baseurl, first_revision, last_revision, config.GIT_CACHE)
 
    cwd = os.getcwd()
    if not exists(config.GIT_CACHE):
        os.mkdir(config.GIT_CACHE)

src/g/i/git-svn-helpers-0.9/gitsvnhelpers/gitify.py   git-svn-helpers(Download)
            sys.exit(1)
 
        if not exists(config.GIT_CACHE + package_name):
            print "No git repository found in %s." % config.GIT_CACHE
            print "Initiating cloning into cache."
        cwd = os.getcwd()
        # perform all index updates in the cache to avoid conflicts
        os.chdir(config.GIT_CACHE + package_name)
 
        dummy, existing_branches = popen('git branch', False, False)
        os.chdir(cwd)
        if not exists('.git'):
            popen('cp -Rp %s%s/.git .' % (config.GIT_CACHE, package_name), False, False)
 
        # if the working copy is on another branch, switch:

src/g/i/git-svn-helpers-HEAD/gitsvnhelpers/gitify.py   git-svn-helpers(Download)
            sys.exit(1)
 
        if not exists(config.GIT_CACHE + package_name):
            print "No git repository found in %s." % config.GIT_CACHE
            print "Initiating cloning into cache."
        cwd = os.getcwd()
        # perform all index updates in the cache to avoid conflicts
        os.chdir(config.GIT_CACHE + package_name)
 
        dummy, existing_branches = popen('git branch', False, False)
        os.chdir(cwd)
        if not exists('.git'):
            popen('cp -Rp %s%s/.git .' % (config.GIT_CACHE, package_name), False, False)
 
        # if the working copy is on another branch, switch:

src/g/i/git-svn-helpers-0.9/gitsvnhelpers/commands.py   git-svn-helpers(Download)
        cwd = os.getcwd()
        updated = 0
        for package in glob(abspath("%s/%s" % (config.GIT_CACHE, input))):
            os.chdir(package)
            print "fetching %s" % package

src/g/i/git-svn-helpers-HEAD/gitsvnhelpers/commands.py   git-svn-helpers(Download)
        cwd = os.getcwd()
        updated = 0
        for package in glob(abspath("%s/%s" % (config.GIT_CACHE, input))):
            os.chdir(package)
            print "fetching %s" % package