This commit is contained in:
Florian Bruhin 2014-10-08 22:20:38 +02:00
parent d9213ecf17
commit 33043f0f6c
3 changed files with 3 additions and 2 deletions

View File

@ -175,7 +175,7 @@ class Command:
signature = inspect.signature(self.handler)
has_count = 'count' in signature.parameters
if has_count and (signature.parameters['count'].default is
inspect.Parameter.empty):
inspect.Parameter.empty):
raise TypeError("{}: handler has count parameter without "
"default!".format(self.name))
doc = inspect.getdoc(self.handler)

View File

@ -568,6 +568,7 @@ def get_repr(obj, constructor=False, **attrs):
else:
return '<{}>'.format(cls)
def qualname(obj):
"""Get the fully qualified name of an object.

View File

@ -27,7 +27,7 @@ from PyQt5.QtWidgets import QListView, QSizePolicy, QMenu
from qutebrowser.browser import downloads
from qutebrowser.config import style
from qutebrowser.utils import qtutils, utils, objreg, log
from qutebrowser.utils import qtutils, utils, objreg
def update_geometry(obj):