[pypy-svn] r36706 - pypy/dist/pypy/annotation
fijal at codespeak.net
fijal at codespeak.net
Sun Jan 14 00:23:43 CET 2007
Author: fijal
Date: Sun Jan 14 00:23:42 2007
New Revision: 36706
Modified:
pypy/dist/pypy/annotation/unaryop.py
Log:
Kill unnecessary code
Modified: pypy/dist/pypy/annotation/unaryop.py
==============================================================================
--- pypy/dist/pypy/annotation/unaryop.py (original)
+++ pypy/dist/pypy/annotation/unaryop.py Sun Jan 14 00:23:42 2007
@@ -14,6 +14,7 @@
from pypy.annotation import builtin
from pypy.annotation.binaryop import _clone ## XXX where to put this?
from pypy.rpython import extregistry
+from pypy.annotation.signature import annotation
# convenience only!
def immutablevalue(x):
@@ -672,15 +673,7 @@
assert s_attr.is_constant()
attr = s_attr.const
entry = extregistry.lookup_type(p.knowntype._class_)
- # we need to flow it, if it's something which can be called
- if isinstance(s_value, SomePBC):
- # we have to have such a declaration to know what we're flowing it with
- bookkeeper = getbookkeeper()
- args_ann = entry.get_arg_annotation(p.knowntype, attr)
- bookkeeper.pbc_call(s_value, bookkeeper.build_args("simple_call", args_ann))
- p.knowntype.check_update()
- if not p.knowntype._fields.has_key(attr):
- entry.set_field_annotation(p.knowntype, attr, s_value)
+ entry.set_field_annotation(p.knowntype, attr, s_value)
def find_method(obj, name):
return obj.knowntype.get_field(name)
More information about the Pypy-commit
mailing list