This is the mail archive of the
gdb-patches@sourceware.org
mailing list for the GDB project.
Re: [patch] [python] Fix Python 3 build and testsuite issues
- From: Tom Tromey <tromey at redhat dot com>
- To: <Paul_Koning at Dell dot com>
- Cc: <pmuldoon at redhat dot com>, <gdb-patches at sourceware dot org>
- Date: Wed, 21 Aug 2013 09:40:04 -0600
- Subject: Re: [patch] [python] Fix Python 3 build and testsuite issues
- References: <521230C8 dot 2040803 at redhat dot com> <878uzxlkl1 dot fsf at fleche dot redhat dot com> <52124B8D dot 6010609 at redhat dot com> <87ppt9jzrl dot fsf at fleche dot redhat dot com> <5213C6BA dot 7030703 at redhat dot com> <87d2p8gmlo dot fsf at fleche dot redhat dot com> <5213D26D dot 4070003 at redhat dot com> <5214CECF dot 30103 at redhat dot com> <8761uzf5t3 dot fsf at fleche dot redhat dot com> <C75A84166056C94F84D238A44AF9F6AD034BBAFB at AUSX10MPC103 dot AMER dot DELL dot COM>
Paul> I would write it this way:
Paul> try:
Paul> basestring
Paul> except NameError:
Paul> basestring = str
Nice trick!
Tom