aboutsummaryrefslogtreecommitdiffstats
path: root/fuzzycat/cluster.py
diff options
context:
space:
mode:
authorMartin Czygan <martin.czygan@gmail.com>2020-11-05 15:17:20 +0100
committerMartin Czygan <martin.czygan@gmail.com>2020-11-05 15:17:20 +0100
commit242ad04f821294b27e1cbc85beed06099a764d5f (patch)
tree5bdf6f15ef1ad8dea41871f263c8f40135b50f0b /fuzzycat/cluster.py
parent76541f0daf7bf4ae5d1dfbaecfb695e9d18ec718 (diff)
downloadfuzzycat-242ad04f821294b27e1cbc85beed06099a764d5f.tar.gz
fuzzycat-242ad04f821294b27e1cbc85beed06099a764d5f.zip
fix flag issues
Diffstat (limited to 'fuzzycat/cluster.py')
-rw-r--r--fuzzycat/cluster.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/fuzzycat/cluster.py b/fuzzycat/cluster.py
index 16523af..a40db06 100644
--- a/fuzzycat/cluster.py
+++ b/fuzzycat/cluster.py
@@ -128,7 +128,7 @@ class Cluster:
"""
keyfunc = self.keyfunc # Save a lookup in loop.
with tempfile.NamedTemporaryFile(delete=False, mode="w", prefix=self.prefix) as tf:
- for line in enumerate(fileinput.input(files=self.files))
+ for line in fileinput.input(files=self.files):
try:
id, key = keyfunc(json.loads(line))
print("{}\t{}".format(id, key), file=tf)