Use built-in truth value testing.

llvm-svn: 132078
This commit is contained in:
Johnny Chen
2011-05-25 20:47:27 +00:00
parent e4e5c0f219
commit 26fc16b032

View File

@@ -81,7 +81,7 @@ def do_lldb_disassembly(lldb_commands, exe, disassemble_options, num_symbols, sy
# Create the debugger instance now.
dbg = lldb.SBDebugger.Create()
if not dbg.IsValid():
if not dbg:
raise Exception('Invalid debugger instance')
# Register an exit callback.