[glib] Avoid shadowing the dir builtin
- From: Matthias Clasen <matthiasc src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [glib] Avoid shadowing the dir builtin
- Date: Fri, 3 Dec 2010 19:09:12 +0000 (UTC)
commit 807101272893f27469bb5c507c7967334a5a0b8e
Author: Matthias Clasen <mclasen redhat com>
Date: Fri Dec 3 14:08:36 2010 -0500
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 files changed, 3 insertions(+), 3 deletions(-)
---
diff --git a/gobject/libgobject-gdb.py.in b/gobject/libgobject-gdb.py.in
index 6ebd0dc..fbd4879 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 ())
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]