|
OpenQuizz
Une application de gestion des contenus pédagogiques
|


Public Member Functions | |
| def | __init__ (self, tokens, comment_tags) |
| def | find_backwards (self, offset) |
| def | find_comments (self, lineno) |
Data Fields | |
| tokens | |
| comment_tags | |
| offset | |
| last_lineno | |
Helper class to find comments in a token stream. Can only find comments for gettext calls forwards. Once the comment from line 4 is found, a comment for line 1 will not return a usable value.
| def __init__ | ( | self, | |
| tokens, | |||
| comment_tags | |||
| ) |
| def find_backwards | ( | self, | |
| offset | |||
| ) |
| def find_comments | ( | self, | |
| lineno | |||
| ) |
| comment_tags |
| last_lineno |
| offset |
| tokens |