]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
hook.in: Rename variable dir to dir_.
authorDavid Malcolm <dmalcolm@redhat.com>
Fri, 6 Aug 2010 20:43:04 +0000 (20:43 +0000)
committerJan Kratochvil <jkratoch@gcc.gnu.org>
Fri, 6 Aug 2010 20:43:04 +0000 (20:43 +0000)
libstdc++-v3/
* python/hook.in: Rename variable dir to dir_.

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

libstdc++-v3/ChangeLog
libstdc++-v3/python/hook.in

index ccdf13a939cdc77a220508ef30de61c39fcf9380..4056c5a033e98b6de597f7726535a7caedab24f0 100644 (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&).
index d4c290f82cd676138129401f4b7027f60a34492e..c76d4a3b3ebadc7acaca82685614d080977716dc 100644 (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