[Python-3000-checkins] r64748 - python/branches/py3k/Lib/rlcompleter.py

benjamin.peterson python-3000-checkins at python.org
Sat Jul 5 23:20:33 CEST 2008


Author: benjamin.peterson
Date: Sat Jul  5 23:20:33 2008
New Revision: 64748

Log:
finish fixing the rlcompleter regression (thanks for noticing Antonine Pitrou)

Modified:
   python/branches/py3k/Lib/rlcompleter.py

Modified: python/branches/py3k/Lib/rlcompleter.py
==============================================================================
--- python/branches/py3k/Lib/rlcompleter.py	(original)
+++ python/branches/py3k/Lib/rlcompleter.py	Sat Jul  5 23:20:33 2008
@@ -87,7 +87,7 @@
             return None
 
     def _callable_postfix(self, val, word):
-        if callable(val):
+        if hasattr(val, '__call__'):
             word = word + "("
         return word
 


More information about the Python-3000-checkins mailing list