Author: Tyler Wade <[email protected]>
Branch: utf8-unicode2
Changeset: r72717:e941f1e74248
Date: 2014-08-05 14:11 -0500
http://bitbucket.org/pypy/pypy/changeset/e941f1e74248/

Log:    Try to fix unicode.join([<unicode codepoints>]). It passed locally
        but failed on the buildbot

diff --git a/rpython/rtyper/rstr.py b/rpython/rtyper/rstr.py
--- a/rpython/rtyper/rstr.py
+++ b/rpython/rtyper/rstr.py
@@ -235,7 +235,8 @@
         else:
             if r_lst.item_repr == rstr.repr:
                 llfn = self.ll.ll_join
-            elif r_lst.item_repr == char_repr:
+            elif (r_lst.item_repr == char_repr or
+                  r_lst.item_repr == unichar_repr):
                 llfn = self.ll.ll_join_chars_with_str
             else:
                 raise TyperError("sep.join() of non-string list: %r" % r_lst)
_______________________________________________
pypy-commit mailing list
[email protected]
https://mail.python.org/mailman/listinfo/pypy-commit

Reply via email to