Skip to content
Closed
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Revert object is not callable
  • Loading branch information
louisom committed May 2, 2017
commit c5ef4d1186caba7c594ec3059c84ad20aa8b1c18
3 changes: 0 additions & 3 deletions Lib/idlelib/calltips.py
Original file line number Diff line number Diff line change
Expand Up @@ -136,9 +136,6 @@ def get_argspec(ob):
argspec = ""
try:
ob_call = ob.__call__
except AttributeError:
argspec = "Object is not callable"
return argspec
except BaseException:
return argspec
if isinstance(ob, type):
Expand Down
3 changes: 0 additions & 3 deletions Lib/idlelib/idle_test/test_calltips.py
Original file line number Diff line number Diff line change
Expand Up @@ -171,9 +171,6 @@ def __call__(self, ci):
(NoCall(), ''), (Call(), '(ci)')):
self.assertEqual(signature(meth), mtip)

def test_non_callables(self):
for obj in (0, 0.0, '0', b'0', [], {}):
self.assertEqual(signature(obj), 'Object is not callable')

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

PEP8

class Get_entityTest(unittest.TestCase):
def test_bad_entity(self):
Expand Down