From: Paul Burton Date: Thu, 21 Sep 2017 09:38:10 -0700 Subject: [U-Boot] [U-Boot, v2, 4/8] test/py: Import StringIO from io module for python 3.x In-Reply-To: <20170921162702.GJ30205@bill-the-cat> References: <20170914213450.28754-5-paul.burton@imgtec.com> <20170921162702.GJ30205@bill-the-cat> Message-ID: <1687453.dZFGkaUIit@np-p-burton> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de Hi Tom, On Thursday, 21 September 2017 09:27:02 PDT Tom Rini wrote: > On Thu, Sep 14, 2017 at 02:34:46PM -0700, Paul Burton wrote: > > In python 3.x the StringIO module is gone, and instead StringIO can be > > imported from the io module. Do this in order to run on python 3.x, and > > fall back to importing StringIO as a module in order to continue working > > with python 2.x. > > > > Signed-off-by: Paul Burton > > Reviewed-by: Stephen Warren > > This breaks python2.7. There we have both StringIO and io.StringIO so > we succeed in 'from io import StringIO'. But io.StringIO() needs > unicode, and we don't have that by default in python2. My quick attempt > here failed. Thanks! Hmm, in that case back to v1 for this patch? (ie. try the StringIO.StringIO import first?) https://patchwork.ozlabs.org/patch/813933/ Would you like me to submit a v3 or could you just take this one from v1? Thanks, Paul -------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 833 bytes Desc: This is a digitally signed message part. URL: