Did I find the right examples for you? yes no

All Samples(4)  |  Call(2)  |  Derive(0)  |  Import(2)

src/p/y/pybootd-HEAD/pybootd/daemons.py   pybootd(Download)
from pybootd import pybootd_path, PRODUCT_NAME, __version__ as VERSION
from tftpd import TftpServer
from util import logger_factory, EasyConfigParser
import os
import sys
        cfgparser.readfp(config)
 
    logger = logger_factory(logtype=cfgparser.get('logger', 'type', 'stderr'),
                            logfile=cfgparser.get('logger', 'file'),
                            level=cfgparser.get('logger', 'level', 'info'))

src/p/y/pybootd-HEAD/pybootd/tests/httpd.py   pybootd(Download)
from BaseHTTPServer import HTTPServer, BaseHTTPRequestHandler
from optparse import OptionParser
from util import logger_factory, to_bool, to_int, EasyConfigParser
 
class HttpdDaemon(HTTPServer):
        cfgparser.readfp(config)
 
    logger = logger_factory(logtype=cfgparser.get('logger', 'type', 'stderr'),
                            logfile=cfgparser.get('logger', 'file'),
                            level=cfgparser.get('logger', 'level', 'info'))