diff --git a/kraken-report.py b/kraken-report.py index 9695d0a..5ae7f61 100755 --- a/kraken-report.py +++ b/kraken-report.py @@ -149,7 +149,9 @@ if __name__ == '__main__': fh = open(filename, 'r') csv_data = csv.DictReader(fh) for line in csv_data: - if not data.has_key(line['pair']): + if not 'pair' in data: + # ^py3 way of doing things, py2: + #if not data.has_key(line['pair']): data[line['pair']] = [] data[line['pair']].append(line)