Did I find the right examples for you? yes no      Crawl my project      Python Jobs

All Samples(2)  |  Call(0)  |  Derive(0)  |  Import(2)
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/s/gsutil-HEAD/gslib/__main__.py   gsutil(Download)
import boto.exception
from gslib import util
from gslib import GSUTIL_DIR
from gslib import wildcard_iterator
from gslib.command_runner import CommandRunner

src/g/s/gsutil-3.42/gslib/__main__.py   gsutil(Download)
import boto.exception
from gslib import util
from gslib import GSUTIL_DIR
from gslib import wildcard_iterator
from gslib.command_runner import CommandRunner

src/g/s/gsutil-HEAD/gslib/commands/update.py   gsutil(Download)
 
    try:
      with open(os.path.join(gslib.GSUTIL_DIR, 'MANIFEST.in'), 'r') as fp:
        for line in fp.readlines():
          if line.startswith('include '):
            manifest_lines.append(line.split()[-1])
    except IOError:
      self.logger.warn('MANIFEST.in not found in %s.\nSkipping user data '
                       'check.\n', gslib.GSUTIL_DIR)
    # MANFFEST.in, and most users who drop data into gsutil dir do so at the top
    # level directory.
    for file in os.listdir(gslib.GSUTIL_DIR):
      if file[-4:] == '.pyc':
        # Ignore compiled code.
            'the gsutil directory. The update command cannot run with user '
            'data in the gsutil directory.' %
            os.path.join(gslib.GSUTIL_DIR, file))))
 
  def _ExplainIfSudoNeeded(self, tf, dirs_to_remove):
            'that you review the release note details at %s before updating to '
            'this version, especially if you use gsutil in scripts.'
            % (tarball_version, gslib.GSUTIL_DIR, RELEASE_NOTES_URL))))
      else:
        print('This command will update to the "%s" version of\ngsutil at %s'