[pypy-svn] pypy default: (arigo, fijal) fix warning

fijal commits-noreply at bitbucket.org
Thu Jan 20 18:59:10 CET 2011


Author: Maciej Fijalkowski <fijall at gmail.com>
Branch: 
Changeset: r41063:ffc0ebc1fd9d
Date: 2011-01-20 19:25 +0200
http://bitbucket.org/pypy/pypy/changeset/ffc0ebc1fd9d/

Log:	(arigo, fijal) fix warning

diff --git a/pypy/annotation/binaryop.py b/pypy/annotation/binaryop.py
--- a/pypy/annotation/binaryop.py
+++ b/pypy/annotation/binaryop.py
@@ -828,6 +828,18 @@
         if not pbc.isNone():
             raise AnnotatorError("setitem on %r" % pbc)
 
+class __extend__(pairtype(SomePBC, SomeString)):
+    def add((pbc, o)):
+        if not pbc.isNone():
+            raise AnnotatorError('add on %r' % pbc)
+        return s_ImpossibleValue
+
+class __extend__(pairtype(SomeString, SomePBC)):
+    def add((o, pbc)):
+        if not pbc.isNone():
+            raise AnnotatorError('add on %r' % pbc)
+        return s_ImpossibleValue
+
 class __extend__(pairtype(SomeExternalObject, SomeExternalObject)):
     def union((ext1, ext2)):
         if ext1.knowntype == ext2.knowntype:


More information about the Pypy-commit mailing list