Fix more flake8 cruft; remove a bunch of logging.

This commit is contained in:
Arthur O'Dwyer
2017-04-29 15:36:27 -07:00
parent c9bc26e03d
commit 48c45e4b0a
11 changed files with 44 additions and 121 deletions

View File

@ -21,11 +21,10 @@ def __relevantDirection(objekt, slipnode):
def __localRelevance(string, slipnode, relevance):
numberOfObjectsNotSpanning = numberOfMatches = 0.0
#logging.info("find relevance for a string: %s" % string);
numberOfObjectsNotSpanning = 0.0
numberOfMatches = 0.0
for objekt in string.objects:
if not objekt.spansString():
#logging.info('non spanner: %s' % objekt)
numberOfObjectsNotSpanning += 1.0
if relevance(objekt, slipnode):
numberOfMatches += 1.0