From 99332dd27c8a62b6d72c70fe284c0477c99d2c61 Mon Sep 17 00:00:00 2001 From: Matthias Clasen Date: Fri, 3 Dec 2010 14:39:59 -0500 Subject: [PATCH] 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 file changed, 3 insertions(+), 3 deletions(-) diff --git a/glib/libglib-gdb.py.in b/glib/libglib-gdb.py.in index 78316be2f..3e07c42df 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 ())