import socket, hashlib

def create_socket(addr):
    proto, params = addr.split('://', 1)
    if not proto.isalnum():
        raise socket.error("Unknown protocol")
    try: mod = getattr(__import__('socketutil.'+proto), proto)
    except ImportError:
        raise socket.error("Unknown protocol")
    return mod.TheSocket(params)


79f9e6fe14f86090b368a5f41d76731a04bc77fe
<mask token>

<mask token>


def create_socket(addr):
    proto, params = addr.split('://', 1)
    if not proto.isalnum():
        raise socket.error('Unknown protocol')
    try:
        mod = getattr(__import__('socketutil.' + proto), proto)
    except ImportError:
        raise socket.error('Unknown protocol')
    return mod.TheSocket(params)

import socket, hashlib


def create_socket(addr):
    proto, params = addr.split('://', 1)
    if not proto.isalnum():
        raise socket.error('Unknown protocol')
    try:
        mod = getattr(__import__('socketutil.' + proto), proto)
    except ImportError:
        raise socket.error('Unknown protocol')
    return mod.TheSocket(params)

import socket, hashlib

def create_socket(addr):
    proto, params = addr.split('://', 1)
    if not proto.isalnum():
        raise socket.error("Unknown protocol")
    try: mod = getattr(__import__('socketutil.'+proto), proto)
    except ImportError:
        raise socket.error("Unknown protocol")
    return mod.TheSocket(params)

