Changeset View
Changeset View
Standalone View
Standalone View
test/lint/lint-python-format-tests.txt
# This file contains python code with % string formatters to test the | # This file contains python code with % string formatters to test the | ||||
# lint-python-format.py script. | # lint-python-format.py script. | ||||
# Single line | # Single line | ||||
"test %s" % "string" | "test %s" % "string" | ||||
"pi %.2f" % 3.1415 | "pi %.2f" % 3.1415 | ||||
# Multiple lines | # Multiple lines | ||||
"test %s" % | "test %s" % | ||||
Show All 17 Lines | |||||
# In a comment | # In a comment | ||||
# "test %s" % "string" | # "test %s" % "string" | ||||
# Nested comment | # Nested comment | ||||
"test %s %s %s" \ | "test %s %s %s" \ | ||||
% ("1", | % ("1", | ||||
#"4", | #"4", | ||||
"2", "3") | "2", "3") | ||||
# Inlined comments are not supported | # Inlined comments are not supported | ||||
# "test %s %s %s" \ | # "test %s %s %s" \ | ||||
# % ("1", #4, | # % ("1", #4, | ||||
# "2", "3") | # "2", "3") | ||||
# Nested format inside a list, dict or function | # Nested format inside a list, dict or function | ||||
["test %s" % "string"] | ["test %s" % "string"] | ||||
{"key1":"%s" % "value1", "key2":"value2"} | {"key1":"%s" % "value1", "key2":"value2"} | ||||
Show All 37 Lines |