[pypy-svn] r49591 - pypy/branch/pypy-interp-file/module/_file
arigo at codespeak.net
arigo at codespeak.net
Mon Dec 10 13:17:00 CET 2007
Author: arigo
Date: Mon Dec 10 13:16:58 2007
New Revision: 49591
Modified:
pypy/branch/pypy-interp-file/module/_file/interp_file.py
Log:
Kill dead code.
Modified: pypy/branch/pypy-interp-file/module/_file/interp_file.py
==============================================================================
--- pypy/branch/pypy-interp-file/module/_file/interp_file.py (original)
+++ pypy/branch/pypy-interp-file/module/_file/interp_file.py Mon Dec 10 13:16:58 2007
@@ -215,10 +215,9 @@
raise wrap_streamerror(self.space, e)
_exposed_method_names = []
- _exposed_classmethod_names = []
def _decl(class_scope, name, unwrap_spec, docstring,
- as_classmethod=False, wrapresult="space.wrap(result)"):
+ wrapresult="space.wrap(result)"):
# hack hack to build a wrapper around the direct_xxx methods.
# The wrapper adds lock/unlock calls and a space.wrap() on
# the result, conversion of stream errors to OperationErrors,
@@ -256,11 +255,7 @@
""" % locals())
exec str(src) in globals(), class_scope
class_scope['file_' + name].unwrap_spec = unwrap_spec
- interp2app
- if as_classmethod:
- class_scope['_exposed_classmethod_names'].append(name)
- else:
- class_scope['_exposed_method_names'].append(name)
+ class_scope['_exposed_method_names'].append(name)
_decl(locals(), "__init__", ['self', str, str, int],
More information about the Pypy-commit
mailing list