Did I find the right examples for you? yes no

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

        def local_addresses():
    ips = socket.gethostbyname_ex(socket.gethostname())[2]
    return set([ip for ip in ips if not ip.startswith("127.")][:1])
        


src/c/a/carbonate-0.2.1/carbonate/cli.py   carbonate(Download)
from .sieve import filterMetrics
from .sync import run_batch
from .util import local_addresses, common_parser
 
from .config import Config
        match_dests = [args.node]
    else:
        match_dests = local_addresses()
 
    try:

src/c/a/carbonate-HEAD/carbonate/cli.py   carbonate(Download)
from .sieve import filterMetrics
from .sync import run_batch
from .util import local_addresses, common_parser
 
from .config import Config
        match_dests = [args.node]
    else:
        match_dests = local_addresses()
 
    try: