Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 7048d3a

Browse files
committed
fix keyword completion in python3
seems like kwonly isn't being used here at all anymore, should look into that later.
1 parent f998277 commit 7048d3a

1 file changed

Lines changed: 1 addition & 4 deletions

File tree

bipython/__init__.py

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1002,10 +1002,7 @@ def _populate_completion(self):
10021002
# This is mostly just stolen from the cli module.
10031003
func_name, args, is_bound, in_arg = self.argspec
10041004
args, varargs, varkw, defaults = args[:4]
1005-
if py3:
1006-
kwonly, kwonly_defaults = args[4:]
1007-
else:
1008-
kwonly, kwonly_defaults = [], {}
1005+
kwonly, kwonly_defaults = [], {}
10091006
markup = [('bold name', func_name),
10101007
('name', ': (')]
10111008

0 commit comments

Comments
 (0)