whitespace fixes according to pep8; cleanup

pep8 --ignore=W191,E225,E501,E401,E302,E122,E123 *.py
This commit is contained in:
urlbot
2014-12-02 17:01:40 +01:00
parent ba60379c76
commit 01ea2d3d6c
6 changed files with 100 additions and 73 deletions

View File

@@ -17,7 +17,7 @@ def str_sim(a, b, do_print=False):
for j in range(0, len(b_parts)-1):
if a_parts[i] == b_parts[j]:
out[i][j] += 1
if do_print:
i = 0
for j in range(0, len(b_parts)):
@@ -41,7 +41,10 @@ def sum_array(array):
def wrapper_print(a, b, comment=''):
ret = str_sim(a, b, do_print=True)
if '' != comment: comment = ' ^ ' + comment
if '' != comment:
comment = ' ^ ' + comment
print('[%2dx%2d::%2d]%s' %(len(ret), len(ret[0]), sum_array(ret), comment))
if '__main__' == __name__: