| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -699,16 +699,17 @@ def mkargspec(self, topline, down): | |||
| 699 | 699 | sturdy.""" | |
| 700 | 700 | ||
| 701 | 701 | r = 3 | |
| 702 | - fn = topline[0] | ||
| 703 | - args = topline[1][0] | ||
| 704 | - kwargs = topline[1][3] | ||
| 705 | - _args = topline[1][1] | ||
| 706 | - _kwargs = topline[1][2] | ||
| 707 | - is_bound_method = topline[2] | ||
| 708 | - in_arg = topline[3] | ||
| 702 | + fn = topline.func | ||
| 703 | + args = topline.arginfo.args | ||
| 704 | + kwargs = topline.arginfo.defaults | ||
| 705 | + _args = topline.arginfo.varargs | ||
| 706 | + _kwargs = topline.arginfo.varkwargs | ||
| 707 | + is_bound_method = topline.is_bound_method | ||
| 708 | + in_arg = topline.in_arg | ||
| 709 | + print "\n\nprinting topline",topline | ||
| 709 | 710 | if py3: | |
| 710 | - kwonly = topline[1][4] | ||
| 711 | - kwonly_defaults = topline[1][5] or dict() | ||
| 711 | + kwonly = topline.arginfo.kwonly | ||
| 712 | + kwonly_defaults = topline.kwonly_defaults or dict() | ||
| 712 | 713 | max_w = int(self.scr.getmaxyx()[1] * 0.6) | |
| 713 | 714 | self.list_win.erase() | |
| 714 | 715 | self.list_win.resize(3, max_w) | |
@@ -1454,7 +1455,7 @@ def tab(self, back=False): | |||
| 1454 | 1455 | current_match = back and self.matches_iter.previous() \ | |
| 1455 | 1456 | or next(self.matches_iter) | |
| 1456 | 1457 | try: | |
| 1457 | - self.show_list(self.matches_iter.matches, topline=self.argspec, | ||
| 1458 | + self.show_list(self.matches_iter.matches, topline=self.funcprops, | ||
| 1458 | 1459 | formatter=self.matches_iter.completer.format, | |
| 1459 | 1460 | current_item=current_match) | |
| 1460 | 1461 | except curses.error: | |
| Back | FazBrowse Home | New Git URL |
0 commit comments