Did I find the right examples for you? yes no

All Samples(1)  |  Call(0)  |  Derive(0)  |  Import(1)
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/a/n/AnchorBot-HEAD/src/anchorbot.py   AnchorBot(Download)
 
import storage
from config import Config, HOME, TEMP, DBPATH, LockedException
from crawler import Crawler
from datamodel import (get_session, get_engine, Source, Article, Image,
    def __init__(self, verbose=0, cache_only=False,
                 update_call=lambda x: x):
        self.logger = logging.getLogger("root")
        self.logger.setLevel(logging.DEBUG)
        if not os.path.exists(HOME):
            os.makedirs(HOME)
        fname = os.path.join(HOME, "anchorbot.log")
        try:
            # Raises Exception if locked
            self.logger.debug("Loading config from %s" % HOME)
            self.config = Config(HOME)
        except LockedException, e: