summaryrefslogtreecommitdiff
path: root/tokens.py
diff options
context:
space:
mode:
Diffstat (limited to 'tokens.py')
-rw-r--r--tokens.py4
1 files changed, 4 insertions, 0 deletions
diff --git a/tokens.py b/tokens.py
index 72c4f48..5176520 100644
--- a/tokens.py
+++ b/tokens.py
@@ -27,6 +27,10 @@ class Token(object):
arguments += u', line: ' + str(self.start_mark.line)
except: # NOQA
pass
+ try:
+ arguments += u', comment: ' + str(self._comment)
+ except: # NOQA
+ pass
return u'{}({})'.format(self.__class__.__name__, arguments)
def add_post_comment(self, comment):