<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def drop_view(self, viewname: str) -> int: """Drops a view."""

        sql = "DROP VIEW IF EXISTS {}".format(viewname)
        log.info("Dropping view " + viewname + " (ignore any warning here)")
        return self.db_exec_literal(sql)