Message ID | 20100806190251.GA9625@host1.dyn.jankratochvil.net |
---|---|
State | New |
Headers | show |
>>>>> "Jan" == Jan Kratochvil <jan.kratochvil@redhat.com> writes:
Jan> Probably obvious, OK to check-in?
Jan> libstdc++-v3/
Jan> 2009-09-18 David Malcolm <dmalcolm@redhat.com>
Jan> Jan Kratochvil <jan.kratochvil@redhat.com>
Jan> * python/hook.in: Rename variable dir to dir_.
This is ok. Thanks.
Tom
On Fri, 06 Aug 2010 22:26:00 +0200, Tom Tromey wrote: > >>>>> "Jan" == Jan Kratochvil <jan.kratochvil@redhat.com> writes: > Jan> libstdc++-v3/ > Jan> 2009-09-18 David Malcolm <dmalcolm@redhat.com> > Jan> Jan Kratochvil <jan.kratochvil@redhat.com> > Jan> * python/hook.in: Rename variable dir to dir_. > > This is ok. Thanks. Checked-in: http://gcc.gnu.org/viewcvs?view=revision&revision=162962 Thanks, Jan
--- a/libstdc++-v3/python/hook.in +++ b/libstdc++-v3/python/hook.in @@ -50,10 +50,10 @@ if gdb.current_objfile () is not None: dotdots = ('..' + os.sep) * len (libdir.split (os.sep)) objfile = gdb.current_objfile ().filename - dir = os.path.join (os.path.dirname (objfile), dotdots, pythondir) + dir_ = os.path.join (os.path.dirname (objfile), dotdots, pythondir) - if not dir in sys.path: - sys.path.insert(0, dir) + if not dir_ in sys.path: + sys.path.insert(0, dir_) # Load the pretty-printers. from libstdcxx.v6.printers import register_libstdcxx_printers