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

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/t/w/twitter_bot-HEAD/do_twitter.py   twitter_bot(Download)
 
    try:
        fp = open( common.REPLIES_FILE, 'rt')
    except IOError:    
        logging.error('Could not open %s',  common.REPLIES_FILE)
 
    try:
        fp = open(common.REPLIES_FILE, 'at')
    except IOError:    
        # We MUST bail out here as we risk replying to tweets more than once
        # if we don't record who we have replied to.
        logging.error('Could not open %s', common.REPLIES_FILE)