From 807101272893f27469bb5c507c7967334a5a0b8e Mon Sep 17 00:00:00 2001 From: Matthias Clasen Date: Fri, 3 Dec 2010 14:08:36 -0500 Subject: [PATCH] Avoid shadowing the dir builtin Proposed by David Malcolm, https://bugzilla.gnome.org/show_bug.cgi?id=636387 --- gobject/libgobject-gdb.py.in | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/gobject/libgobject-gdb.py.in b/gobject/libgobject-gdb.py.in index 6ebd0dcc1..fbd4879e1 100644 --- a/gobject/libgobject-gdb.py.in +++ b/gobject/libgobject-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 gobject import register register (gdb.current_objfile ())