Commit f0850eb1 authored by Stefan Behnel's avatar Stefan Behnel

simplify cygdb test code to remove an unnecessary indentation level

parent ce3e9f23
......@@ -35,7 +35,9 @@ build_ext = sys.modules['Cython.Distutils.build_ext']
have_gdb = None
def test_gdb():
global have_gdb
if have_gdb is None:
if have_gdb is not None:
return have_gdb
try:
p = subprocess.Popen(['gdb', '-v'], stdout=subprocess.PIPE)
have_gdb = True
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment