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

20 lines
472 B
Python

def unclear():
# Returns [ "first part of long string and the second part", "/usr/local/usr/bin" ]
return [
"first part of long string"
" and the second part",
"/usr/local"
"/usr/bin"
]
def clarified():
# Returns [ "first part of long string and the second part", "/usr/local", "/usr/bin" ]
return [
"first part of long string" +
" and the second part",
"/usr/local",
"/usr/bin"
]