Message7980

Author seletz
Recipients fwierzbicki, seletz
Date 2013-03-25.08:01:06
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1364198466.64.0.0164467394744.issue2028@psf.upfronthosting.co.za>
In-reply-to
Content
Ah, the use case -- I tried to run IPython (master) using the latest Jython.  IPython seems to use this method somehow to parse/create its
fancy prompts for its REPL.  They contain colour escapes and are
unicode strings.  I hacked around this issue by force-coercing to
string -- this is surely not the correct way, tho.

--- string.py.orig	2013-03-25 08:59:17.000000000 +0100
+++ string.py	2013-03-25 08:59:29.000000000 +0100
@@ -618,7 +618,7 @@
     # if field_name is not None, it is looked up, formatted
     #  with format_spec and conversion and then used
     def parse(self, format_string):
-        return format_string._formatter_parser()
+        return str(format_string)._formatter_parser()


     # given a field_name, find the object it references.
History
Date User Action Args
2013-03-25 08:01:06seletzsetmessageid: <1364198466.64.0.0164467394744.issue2028@psf.upfronthosting.co.za>
2013-03-25 08:01:06seletzsetrecipients: + seletz, fwierzbicki
2013-03-25 08:01:06seletzlinkissue2028 messages
2013-03-25 08:01:06seletzcreate