Avoid shadowing the dir builtin
authorMatthias Clasen <mclasen@redhat.com>
Fri, 3 Dec 2010 19:08:36 +0000 (14:08 -0500)
committerMatthias Clasen <mclasen@redhat.com>
Fri, 3 Dec 2010 19:08:36 +0000 (14:08 -0500)
Proposed by David Malcolm,

https://bugzilla.gnome.org/show_bug.cgi?id=636387

gobject/libgobject-gdb.py.in

index 6ebd0dc..fbd4879 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 gobject import register
 register (gdb.current_objfile ())