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

All Samples(5)  |  Call(2)  |  Derive(0)  |  Import(3)

        def stop():
    if server_thread is None:
        return
    import urllib2
    try:
        urllib2.urlopen('http://localhost:%s/quit'%(server_port,))
    except urllib2.HTTPError:
        pass
        


src/p/l/plexnet-HEAD/third_party/generic/pypy/pypy/tool/tb_server/__init__.py   plexnet(Download)
def start():
    global start, stop, publish_exc, wait_until_interrupt
    from server import start, stop, publish_exc, wait_until_interrupt
    return start()
 

src/s/y/Sypy-HEAD/tool/tb_server/__init__.py   Sypy(Download)
def start():
    global start, stop, publish_exc, wait_until_interrupt
    from server import start, stop, publish_exc, wait_until_interrupt
    return start()
 

src/m/o/mootiro-maps-HEAD/fabfile/deploy.py   mootiro-maps(Download)
 
from .base import virtualenv
from .server import start as server_start, stop as server_stop
from .db import backup as db_backup
 
def deploy_to_staging(deploy_info):
    '''Staging deploy strategy.'''
    with quiet():
        server_stop()
    checkout(deploy_info['to_commit'])
def deploy_to_production(deploy_info):
    '''Production deploy strategy.'''
    with quiet():
        server_stop()
    db_backup()