[pypy-commit] pypy default: a bit of copy paste

fijal noreply at buildbot.pypy.org
Mon Sep 12 15:48:03 CEST 2011


Author: Maciej Fijalkowski <fijall at gmail.com>
Branch: 
Changeset: r47227:2868163b3dc4
Date: 2011-09-12 15:47 +0200
http://bitbucket.org/pypy/pypy/changeset/2868163b3dc4/

Log:	a bit of copy paste

diff --git a/pypy/rlib/rstring.py b/pypy/rlib/rstring.py
--- a/pypy/rlib/rstring.py
+++ b/pypy/rlib/rstring.py
@@ -181,4 +181,14 @@
     def union((p, sb)):
         assert p.const is None
         return SomeStringBuilder(can_be_None=True)
-    
+
+class __extend__(pairtype(SomeUnicodeBuilder, SomePBC)):
+    def union((sb, p)):
+        assert p.const is None
+        return SomeUnicodeBuilder(can_be_None=True)
+
+class __extend__(pairtype(SomePBC, SomeUnicodeBuilder)):
+    def union((p, sb)):
+        assert p.const is None
+        return SomeUnicodeBuilder(can_be_None=True)
+


More information about the pypy-commit mailing list