[pypy-svn] r47083 - pypy/dist/pypy/module/crypt
arigo at codespeak.net
arigo at codespeak.net
Tue Oct 2 10:30:25 CEST 2007
Author: arigo
Date: Tue Oct 2 10:30:25 2007
New Revision: 47083
Modified:
pypy/dist/pypy/module/crypt/__init__.py
pypy/dist/pypy/module/crypt/interp_crypt.py
Log:
Kill dead imports.
Modified: pypy/dist/pypy/module/crypt/__init__.py
==============================================================================
--- pypy/dist/pypy/module/crypt/__init__.py (original)
+++ pypy/dist/pypy/module/crypt/__init__.py Tue Oct 2 10:30:25 2007
@@ -1,7 +1,7 @@
from pypy.interpreter.mixedmodule import MixedModule
class Module(MixedModule):
- """A demo built-in module based on ctypes."""
+ """A demo built-in module based on rffi."""
interpleveldefs = {
'crypt' : 'interp_crypt.crypt',
Modified: pypy/dist/pypy/module/crypt/interp_crypt.py
==============================================================================
--- pypy/dist/pypy/module/crypt/interp_crypt.py (original)
+++ pypy/dist/pypy/module/crypt/interp_crypt.py Tue Oct 2 10:30:25 2007
@@ -1,16 +1,7 @@
from pypy.interpreter.error import OperationError
from pypy.interpreter.baseobjspace import ObjSpace, W_Root
-from pypy.rpython.rctypes.tool import ctypes_platform
-from pypy.rpython.tool import rffi_platform as platform
-from pypy.rpython.rctypes.tool.util import find_library
from pypy.rpython.lltypesystem import rffi, lltype
-import sys
-
-#if sys.platform == 'darwin':
-# dllname = find_library('c')
-# assert dllname is not None
-# cryptlib = cdll.LoadLibrary(dllname)
c_crypt = rffi.llexternal('crypt', [rffi.CCHARP, rffi.CCHARP], rffi.CCHARP,
libraries=["crypt"], threadsafe=False)
More information about the Pypy-commit
mailing list