Merge pull request #155 from sieben/dict_literal

Dict creation can be literal
This commit is contained in:
Pierre Lalet 2016-05-14 13:03:04 +00:00
commit 644d3784dd
1 changed files with 1 additions and 2 deletions

View File

@ -113,8 +113,7 @@ def hexdiff(x,y):
y=str(y)[::-1]
SUBST=1
INSERT=1
d={}
d[-1,-1] = 0,(-1,-1)
d = {(-1, -1): (0, (-1, -1))}
for j in xrange(len(y)):
d[-1,j] = d[-1,j-1][0]+INSERT, (-1,j-1)
for i in xrange(len(x)):