Feat: remove __txt__ and __tex__
All checks were successful
continuous-integration/drone/push Build is passing

This commit is contained in:
Bertrand Benjamin 2020-12-12 22:09:50 +01:00
parent 7649928be8
commit 1a20e6927d

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 """