Skip to content

Commit 9dfacee

Browse files
author
Bob Farrell
committed
Class __init__ spec lookup fixed on classes with no __init__
The AttributeError wasn't being caught on the lookup, which is now fixed. committer: Bob Farrell <bob@keys.(none)>
1 parent 367b124 commit 9dfacee

4 files changed

Lines changed: 2 additions & 1401 deletions

File tree

‎bpython.py‎

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -280,6 +280,8 @@ def getargspec( func ):
280280
return None
281281
self.argspec = t
282282
return True
283+
except AttributeError: # no __init__
284+
return None
283285

284286
def parse_parens( s ):
285287
"""Run a string through the pyparsing pattern for paren

‎build/lib/bpython/__init__.py‎

Lines changed: 0 additions & 21 deletions
This file was deleted.

‎build/lib/bpython/formatter.py‎

Lines changed: 0 additions & 99 deletions
This file was deleted.

0 commit comments

Comments
 (0)