Uglify the code to make flake8 happier

This commit is contained in:
Nathaniel J. Smith 2017-02-24 15:10:35 -08:00
parent a3b80bc87a
commit 2fd78648e6

View File

@ -43,9 +43,9 @@ if PY3:
# On 3.5+, signature(int) or similar raises ValueError. On 3.4, it
# succeeds with a bogus signature. We want a TypeError uniformly, to
# match historical behavior.
if (isinstance(func, type)
and is_builtin_class_method(func, "__new__")
and is_builtin_class_method(func, "__init__")):
if (isinstance(func, type) and
is_builtin_class_method(func, "__new__") and
is_builtin_class_method(func, "__init__")):
raise TypeError(
"can't compute signature for built-in type {}".format(func))