Skip to content

Commit eb0e715

Browse files
committed
Remove trailing whitespace
1 parent 108367a commit eb0e715

1 file changed

Lines changed: 8 additions & 8 deletions

File tree

code_comments/comment.py

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -83,20 +83,20 @@ def link_text(self):
8383
# except the two specials cases of changesets (revision-only)
8484
# and arrachments (path-only), we must always have them both
8585
assert self.path and self.revision
86-
86+
8787
link_text = self.path + '@' + str(self.revision)
8888
if self.line:
8989
link_text += '#L' + str(self.line)
9090
return link_text
91-
91+
9292
def attachment_link_text(self):
9393
return '#%s: %s' % (self.attachment_ticket, self.attachment_filename)
9494

9595
def trac_link(self):
9696
if self.is_comment_to_attachment:
9797
return '[%s %s]' % (self.req.href())
9898
return 'source:' + self.link_text()
99-
99+
100100
def attachment_info(self):
101101
info = {'is': False, 'ticket': None, 'filename': None}
102102
info['is'] = self.path.startswith('attachment:')
@@ -111,15 +111,15 @@ def attachment_info(self):
111111

112112
def path_link_tag(self):
113113
return Markup('<a href="%s">%s</a>' % (self.href(), self.link_text()))
114-
114+
115115
def formatted_date(self):
116116
return strftime('%d %b %Y, %H:%M', gmtime(self.time))
117-
117+
118118
def get_ticket_relations(self):
119119
relations = set()
120120
db = self.env.get_db_cnx()
121121
cursor = db.cursor()
122-
query = """SELECT ticket FROM ticket_custom WHERE name = 'code_comment_relation' AND
122+
query = """SELECT ticket FROM ticket_custom WHERE name = 'code_comment_relation' AND
123123
(value LIKE '%(comment_id)d' OR
124124
value LIKE '%(comment_id)d,%%' OR
125125
value LIKE '%%,%(comment_id)d' OR value LIKE '%%,%(comment_id)d,%%')""" % {'comment_id': self.id}
@@ -130,7 +130,7 @@ def get_ticket_ids(db):
130130
cursor.execute(query)
131131
result['tickets'] = cursor.fetchall()
132132
return set([int(row[0]) for row in result['tickets']])
133-
133+
134134
def get_ticket_links(self):
135135
relations = self.get_ticket_relations()
136136
links = ['[[ticket:%s]]' % relation for relation in relations]
@@ -154,4 +154,4 @@ def default(self, o):
154154

155155
def format_to_html(req, env, text):
156156
context = Context.from_request(req)
157-
return trac.wiki.formatter.format_to_html(env, context, text)
157+
return trac.wiki.formatter.format_to_html(env, context, text)

0 commit comments

Comments
 (0)