| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
Sorry, something went wrong.
|
Some changes are not PEP 7 compliant because I've copied from old code before GH-46. |
Sorry, something went wrong.
There was a problem hiding this comment.
Added few nitpicks, but LGTM in general!
Sorry, something went wrong.
| } | ||
| } | ||
| return NULL; | ||
| return 0; |
There was a problem hiding this comment.
Functions in this file usually return 1 on success and 0 on error (except functions which need to return a non-negative index on success).
Sorry, something went wrong.
| if (find_ann(stmts)) { | ||
| ADDOP(c, SETUP_ANNOTATIONS); | ||
| } | ||
| if (!asdl_seq_LEN(stmts)) |
There was a problem hiding this comment.
Maybe move this to the bottom of this function?
Sorry, something went wrong.
There was a problem hiding this comment.
This should be before asdl_seq_GET.
And this code is copied back from 3.6. (There are extra blank line, I'll remove it)
Lines 1457 to 1459 in baa4507
Sorry, something went wrong.
|
|
||
| def _DocString(self, t): | ||
| self.fill() | ||
| self.write(repr(t.s)) |
There was a problem hiding this comment.
Why not fill()?
Sorry, something went wrong.
| Back | FazBrowse Home | New Git URL |
https://bugs.python.org/issue32911