If we are trying to load the scripting resource for a module whose name happens to...
authorEnrico Granata <egranata@apple.com>
Thu, 26 Feb 2015 01:37:26 +0000 (01:37 +0000)
committerEnrico Granata <egranata@apple.com>
Thu, 26 Feb 2015 01:37:26 +0000 (01:37 +0000)
commit99b0a9cdd7a70300cc935fe9edaa19cdcf968d24
tree4764fe03aa327bf3fbfcc223e4fbd16f3c89315b
parent5017ab5d0eb59d20babc245961c2039d43d9b8cc
If we are trying to load the scripting resource for a module whose name happens to be a Python keyword, then prefix the filename with an _ (e.g. a module named def will load _def.py)

Fixes rdar://13893506

llvm-svn: 230602
lldb/include/lldb/Interpreter/ScriptInterpreter.h
lldb/include/lldb/Interpreter/ScriptInterpreterPython.h
lldb/source/Interpreter/ScriptInterpreterPython.cpp
lldb/source/Plugins/Platform/MacOSX/PlatformDarwin.cpp