| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
1 parent 92dccc9 commit f6a6f94
1 file changed
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -479,12 +479,11 @@ def get_object(self, name): | |||
| 479 | 479 | ||
| 480 | 480 | @classmethod | |
| 481 | 481 | def _funcname_and_argnum(cls, line): | |
| 482 | + """Parse out the current function name and arg from a line of code.""" | ||
| 482 | 483 | # each list in stack: | |
| 483 | 484 | # [full_expr, function_expr, arg_number, opening] | |
| 484 | - # empty string in num_commas means we've encountered a kwarg | ||
| 485 | - # so we're done counting | ||
| 486 | - | ||
| 487 | - # new plan: do a full parse, then combine things | ||
| 485 | + # arg_number may be a string if we've encountered a keyword | ||
| 486 | + # argument so we're done counting | ||
| 488 | 487 | stack = [['', '', 0, '']] | |
| 489 | 488 | try: | |
| 490 | 489 | for (token, value) in PythonLexer().get_tokens(line): | |
| Back | FazBrowse Home | New Git URL |
0 commit comments