[pypy-commit] pypy default: kill this 'if 0' path for VMS

arigo pypy.commits at gmail.com
Mon Nov 28 11:02:59 EST 2016


Author: Armin Rigo <arigo at tunes.org>
Branch: 
Changeset: r88706:402299f61542
Date: 2016-11-28 17:02 +0100
http://bitbucket.org/pypy/pypy/changeset/402299f61542/

Log:	kill this 'if 0' path for VMS

diff --git a/rpython/rlib/rurandom.py b/rpython/rlib/rurandom.py
--- a/rpython/rlib/rurandom.py
+++ b/rpython/rlib/rurandom.py
@@ -75,16 +75,6 @@
 
             return rffi.charpsize2str(rffi.cast(rffi.CCHARP, buf), n)
 
-elif 0:  # __VMS
-    from rpython.rlib.ropenssl import libssl_RAND_pseudo_bytes
-    def init_urandom():
-        pass
-
-    def urandom(context, n):
-        with rffi.scoped_alloc_buffer(n) as buf:
-            if libssl_RAND_pseudo_bytes(self.raw, n) < 0:
-                raise ValueError("RAND_pseudo_bytes")
-            return buf.str(n)
 else:  # Posix implementation
     @not_rpython
     def init_urandom():


More information about the pypy-commit mailing list