Feat: remove __txt__ and __tex__
continuous-integration/drone/push Build is passing Details

This commit is contained in:
Bertrand Benjamin 2020-12-12 22:09:50 +01:00
parent 7649928be8
commit 1a20e6927d
1 changed files with 1 additions and 9 deletions

View File

@ -64,19 +64,11 @@ class Token(object):
yield self
def __repr__(self):
return f"<{self.__class__.__name__} {self.__txt__}>"
return f"<{self.__class__.__name__} {renders['txt'](self._mo)}>"
def __str__(self):
return renders[self.RENDER](self._mo)
@property
def __txt__(self):
return self._mo.__txt__
@property
def __tex__(self):
return self._mo.__tex__
@property
def raw(self):
""" Get python's raw forme of the token """