Files
openide/python/testData/inspections/PyUnboundLocalVariableInspection/UnboundConditionalImportQualified.py

7 lines
189 B
Python

def f(c, x):
if c:
import os.path
else:
pass
return <warning descr="Local variable 'os' might be referenced before assignment">os</warning>.path.isfile(x) #fail