예제 #1
0
파일: __init__.py 프로젝트: griels/pypy-sc
    def buildloaders(cls):
        # init the SSL module
        from pypy.module._ssl.interp_ssl import _init_ssl, constants, HAVE_OPENSSL_RAND
        _init_ssl()

        for constant, value in constants.iteritems():
            Module.interpleveldefs[constant] = "space.wrap(%r)" % value

        if HAVE_OPENSSL_RAND:
            Module.interpleveldefs['RAND_add'] = "interp_ssl.RAND_add"
            Module.interpleveldefs['RAND_status'] = "interp_ssl.RAND_status"
            Module.interpleveldefs['RAND_egd'] = "interp_ssl.RAND_egd"

        super(Module, cls).buildloaders()
예제 #2
0
 def buildloaders(cls):
     # init the SSL module
     from pypy.module._ssl.interp_ssl import _init_ssl, constants, HAVE_OPENSSL_RAND
     _init_ssl()
     
     for constant, value in constants.iteritems():
         Module.interpleveldefs[constant] = "space.wrap(%r)" % value
         
     if HAVE_OPENSSL_RAND:
         Module.interpleveldefs['RAND_add'] = "interp_ssl.RAND_add"
         Module.interpleveldefs['RAND_status'] = "interp_ssl.RAND_status"
         Module.interpleveldefs['RAND_egd'] = "interp_ssl.RAND_egd"
     
     super(Module, cls).buildloaders()
예제 #3
0
파일: __init__.py 프로젝트: alkorzt/pypy
 def startup(self, space):
     from pypy.module._ssl.interp_ssl import _init_ssl
     _init_ssl()
예제 #4
0
 def startup(self, space):
     from pypy.module._ssl.interp_ssl import _init_ssl
     _init_ssl()