Class __init__ spec lookup fixed on classes with no __init__

The AttributeError wasn't being caught on the lookup, which is now fixed.
This commit is contained in:
Bob Farrell
2008-04-27 23:23:22 +01:00
parent 7a1ebadb52
commit c4089f5cec
4 changed files with 2 additions and 1401 deletions
+2
View File
@@ -280,6 +280,8 @@ class Repl:
return None
self.argspec = t
return True
except AttributeError: # no __init__
return None
def parse_parens( s ):
"""Run a string through the pyparsing pattern for paren