mirror of
https://github.com/correl/codereview.git
synced 2024-12-25 19:25:37 +00:00
Get rid of useless html diff method
This commit is contained in:
parent
8c28812654
commit
74d04a4ed0
1 changed files with 0 additions and 12 deletions
12
lib/vcs.py
12
lib/vcs.py
|
@ -83,18 +83,6 @@ class Diff(object):
|
|||
changes.append(change)
|
||||
return changes
|
||||
|
||||
def html(self):
|
||||
a = self.a.data.split('\n') if self.a.data else []
|
||||
b = self.b.data.split('\n') if self.b.data else []
|
||||
h = difflib.HtmlDiff()
|
||||
diff = h.make_table(
|
||||
a,
|
||||
b,
|
||||
fromdesc=self.a.path,
|
||||
todesc=self.b.path,
|
||||
context=True)
|
||||
return diff
|
||||
|
||||
class Commit(object):
|
||||
def __init__(self):
|
||||
self.id = None
|
||||
|
|
Loading…
Reference in a new issue