- Code: Select all
"""CREATE this USER.
Beware that this method is open to SQL injection attack. Don't use
unvetted values of self.user.
self.super_psql(['-c', "CREATE USER %s" % self.user])
"""DROP this DATABASE, if it exists."""
self.super_psql(['-c', "DROP DATABASE IF EXISTS %s" % self.db_name])
Here's how it's rendered. As you can see, despite the closing triple quote, the highlighter thinks the remainder of the file is part of the create_user.__doc__. Apparently, this is caused by two things, the CREATE characters at the beginning of the docstring and the apostrophe in "Don't" later in the docstring. Remove either of those, and the syntax highlighting returns to normal.