Author: Maciej Fijalkowski <[email protected]>
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)
+
_______________________________________________
pypy-commit mailing list
[email protected]
http://mail.python.org/mailman/listinfo/pypy-commit