summaryrefslogtreecommitdiffstats
path: root/libstdc++-v3/python
diff options
context:
space:
mode:
authorjkratoch <jkratoch@138bc75d-0d04-0410-961f-82ee72b054a4>2010-08-06 20:43:04 +0000
committerjkratoch <jkratoch@138bc75d-0d04-0410-961f-82ee72b054a4>2010-08-06 20:43:04 +0000
commit41683b0f5643c31adb256949070c813c2ff7ee5a (patch)
tree8dc484aa68455cc7d8956b936df119a355cd2b76 /libstdc++-v3/python
parent18854ff6cc1edff0dce796def3de579e1afa55b8 (diff)
downloadppe42-gcc-41683b0f5643c31adb256949070c813c2ff7ee5a.tar.gz
ppe42-gcc-41683b0f5643c31adb256949070c813c2ff7ee5a.zip
libstdc++-v3/
* python/hook.in: Rename variable dir to dir_. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@162962 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'libstdc++-v3/python')
-rw-r--r--libstdc++-v3/python/hook.in6
1 files changed, 3 insertions, 3 deletions
diff --git a/libstdc++-v3/python/hook.in b/libstdc++-v3/python/hook.in
index d4c290f82cd..c76d4a3b3eb 100644
--- a/libstdc++-v3/python/hook.in
+++ b/libstdc++-v3/python/hook.in
@@ -50,10 +50,10 @@ if gdb.current_objfile () is not None:
dotdots = ('..' + os.sep) * len (libdir.split (os.sep))
objfile = gdb.current_objfile ().filename
- dir = os.path.join (os.path.dirname (objfile), dotdots, pythondir)
+ dir_ = os.path.join (os.path.dirname (objfile), dotdots, pythondir)
- if not dir in sys.path:
- sys.path.insert(0, dir)
+ if not dir_ in sys.path:
+ sys.path.insert(0, dir_)
# Load the pretty-printers.
from libstdcxx.v6.printers import register_libstdcxx_printers
OpenPOWER on IntegriCloud