[glib] Avoid shadowing dir builtin



commit 99332dd27c8a62b6d72c70fe284c0477c99d2c61
Author: Matthias Clasen <mclasen redhat com>
Date:   Fri Dec 3 14:39:59 2010 -0500

    Avoid shadowing dir builtin
    
    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 |    6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)
---
diff --git a/glib/libglib-gdb.py.in b/glib/libglib-gdb.py.in
index 78316be..3e07c42 100644
--- a/glib/libglib-gdb.py.in
+++ b/glib/libglib-gdb.py.in
@@ -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 ())



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]