If you think this is a bug please file an issue on the tracker: http://code.google.com/p/python-sqlparse/issues/list .