Last four quotation marks in
"""\\"Axis of Awesome\\""""
are parsed as """
, i.e. the end of the line followed by "
, i.e. start of a new string literal. However, this new literal never ends. A simple example:
>>> """foo""""bar" 'foobar' >>> """foo""" "bar" 'foobar'
If you want to avoid this problem, replace """
with r'
or release "
:
>>> """\\"Axis of Awesome\\\"""" '\\"Axis of Awesome\\"' >>> r'\"Axis of Awesome\"' '\\"Axis of Awesome\\"'
source share