Files
codeql/python/ql/src/Expressions/Formatting/WrongNumberArgumentsFor3101Format.py
2018-11-19 15:10:42 +00:00

8 lines
170 B
Python

def unsafe_format():
the_format = "{} {} {}"
if unlikely_condition():
return the_format.format(1, 2)
else:
return the_format.format(1, 2, 3)