hook.in: Rename variable dir to dir_.

libstdc++-v3/
	* python/hook.in: Rename variable dir to dir_.

Co-Authored-By: Jan Kratochvil <jan.kratochvil@redhat.com>

From-SVN: r162962
This commit is contained in:
David Malcolm 2010-08-06 20:43:04 +00:00 committed by Jan Kratochvil
parent 7862d49629
commit cd6b2fa0e7
2 changed files with 8 additions and 3 deletions

View file

@ -1,3 +1,8 @@
2010-08-06 David Malcolm <dmalcolm@redhat.com>
Jan Kratochvil <jan.kratochvil@redhat.com>
* python/hook.in: Rename variable dir to dir_.
2010-08-06 Jason Merrill <jason@redhat.com>
* include/std/thread: Add deleted thread(thread&).

View file

@ -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