Kaydet (Commit) 52597be2 authored tarafından Brett Cannon's avatar Brett Cannon

Remove a use of callable() to silence the warning triggered under -3.

üst f5eb2ff1
......@@ -93,7 +93,7 @@ class Completer:
return None
def _callable_postfix(self, val, word):
if callable(val):
if hasattr(val, '__call__'):
word = word + "("
return word
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment