mirror of
https://github.com/github/codeql.git
synced 2025-12-17 17:23:36 +01:00
17 lines
381 B
Python
17 lines
381 B
Python
#https://semmle.com/jira/browse/ODASA-1222
|
|
|
|
def example(filename):
|
|
if filename:
|
|
try:
|
|
f = None
|
|
try:
|
|
f = open(filename, 'w')
|
|
f.write('Hello')
|
|
except IOError:
|
|
sys.exit(1)
|
|
finally:
|
|
if f is not None: f.close()
|
|
|
|
assert u"This is a false successor to the comparison"
|
|
|