Avoid shadowing dir builtin
authorMatthias Clasen <mclasen@redhat.com>
Fri, 3 Dec 2010 19:39:59 +0000 (14:39 -0500)
committerMatthias Clasen <mclasen@redhat.com>
Fri, 3 Dec 2010 19:41:06 +0000 (14:41 -0500)
This is the same change that was already applied to the other gdb
script we ship. I had forgotten there was a second one.

glib/libglib-gdb.py.in

index 78316be..3e07c42 100644 (file)
@@ -2,9 +2,9 @@ import sys
 import gdb
 
 # Update module path.
-dir = '@datadir@/glib-2.0/gdb'
-if not dir in sys.path:
-    sys.path.insert(0, dir)
+dir_ = '@datadir@/glib-2.0/gdb'
+if not dir_ in sys.path:
+    sys.path.insert(0, dir_)
 
 from glib import register
 register (gdb.current_objfile ())