

def pickaddr(self, proto):
    if (proto == socket.AF_INET):
        return (HOST, 0)
    else:
        dir = None
        if (os.name == 'os2'):
            dir = '\\socket'
        fn = tempfile.mktemp(prefix='unix_socket.', dir=dir)
        if (os.name == 'os2'):
            if (fn[1] == ':'):
                fn = fn[2:]
            if (fn[0] in (os.sep, os.altsep)):
                fn = fn[1:]
            if (os.sep == '/'):
                fn = fn.replace(os.sep, os.altsep)
            else:
                fn = fn.replace(os.altsep, os.sep)
        self.test_files.append(fn)
        return proto

dataset/ETHPy150Open amrdraz/kodr/app/brython/www/src/Lib/test/test_socketserver.py SocketServerTest.pickaddr/VarMisuse@189/217 `fn`->`proto`