[pypy-svn] r28319 - in pypy/dist/pypy/module: crypt time2
hpk at codespeak.net
hpk at codespeak.net
Mon Jun 5 12:16:57 CEST 2006
Author: hpk
Date: Mon Jun 5 12:16:57 2006
New Revision: 28319
Modified:
pypy/dist/pypy/module/crypt/interp_crypt.py
pypy/dist/pypy/module/time2/interp_time.py
Log:
fixes to modules to be become translatable (thanks again, michael)
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 Mon Jun 5 12:16:57 2006
@@ -6,10 +6,6 @@
import sys
from ctypes import *
-class CConfig:
- _header_ = """#include <crypt.h>
-"""
-
cryptfn = find_library("crypt")
cryptdll = load_library(cryptfn)
Modified: pypy/dist/pypy/module/time2/interp_time.py
==============================================================================
--- pypy/dist/pypy/module/time2/interp_time.py (original)
+++ pypy/dist/pypy/module/time2/interp_time.py Mon Jun 5 12:16:57 2006
@@ -1,7 +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.rctypes.tool.clib import clib
+from pypy.rpython.rctypes.tool.libc import libc
import sys
from ctypes import *
@@ -18,7 +18,7 @@
clock_t = cconfig['clock_t']
CLOCKS_PER_SEC = cconfig['CLOCKS_PER_SEC']
-c_clock = clib.clock
+c_clock = libc.clock
c_clock.restype = clock_t
def clock(space):
More information about the Pypy-commit
mailing list