[pypy-svn] pypy interplevel-exception-classes: Try to fix translation
amauryfa
commits-noreply at bitbucket.org
Fri Feb 18 01:12:44 CET 2011
Author: Amaury Forgeot d'Arc <amauryfa at gmail.com>
Branch: interplevel-exception-classes
Changeset: r42128:1e842fd10e8e
Date: 2011-02-18 01:12 +0100
http://bitbucket.org/pypy/pypy/changeset/1e842fd10e8e/
Log: Try to fix translation
diff --git a/pypy/module/_socket/interp_socket.py b/pypy/module/_socket/interp_socket.py
--- a/pypy/module/_socket/interp_socket.py
+++ b/pypy/module/_socket/interp_socket.py
@@ -464,10 +464,10 @@
self.w_timeout = new_exception_class(
space, "_socket.timeout", self.w_error)
- @specialize.memo()
def get_exception(self, applevelerrcls):
return getattr(self, 'w_' + applevelerrcls)
+ at specialize.arg(1)
def get_error(space, name):
return space.fromcache(SocketAPI).get_exception(name)
More information about the Pypy-commit
mailing list