py1.curly¶
Implements the un-escaping of the {{ }} indents.
Functions
unescape (code_str) |
Substitutes ‘{{‘ by indents and ‘}}’ by dedents. |
Classes
Token |
Represents a single Token. |
TokenAndPos |
Represents a single Token and its position. |
Exceptions
CannotTokenize (message, position) |
Raised when the tokenize module failed. |
Error |
Base class for errors from this module. |
Mismatch (message, token_and_pos) |
There is not the same number of ‘{{‘ and ‘}}’. |
-
class
Token
[source]¶ Represents a single Token.
-
num
¶ The token type as per the tokenize module.
-
val
¶ The token value as per the tokenize module.
-