[pypy-commit] pypy utf8-unicode2: Try to fix unicode.join([<unicode codepoints>]). It passed locally but failed on the buildbot

waedt noreply at buildbot.pypy.org
Fri Aug 8 09:22:39 CEST 2014


Author: Tyler Wade <wayedt at gmail.com>
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)


More information about the pypy-commit mailing list