Fix outdated docstring and pylint error.

This commit is contained in:
Ryan Roden-Corrent 2017-06-20 22:25:09 -04:00
parent b722cc1dec
commit 6080830a8b
2 changed files with 3 additions and 6 deletions

View File

@ -17,11 +17,7 @@
# You should have received a copy of the GNU General Public License
# along with qutebrowser. If not, see <http://www.gnu.org/licenses/>.
"""The base completion model for completion in the command line.
Module attributes:
Role: An enum of user defined model roles.
"""
"""Completion category that uses a list of tuples as a data source."""
import re

View File

@ -241,6 +241,7 @@ class SqlTable(QObject):
"""
q = Query("SELECT * FROM {table} ORDER BY {sort_by} {sort_order} "
"LIMIT :limit"
.format(table=self._name, sort_by=sort_by, sort_order=sort_order))
.format(table=self._name, sort_by=sort_by,
sort_order=sort_order))
q.run(limit=limit)
return q