mirror of
https://github.com/kennethreitz-archive/bpython-gist.git
synced 2026-06-05 23:50:18 +00:00
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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user