Skip to content

Commit

Permalink
python 3.5 compat
Browse files Browse the repository at this point in the history
  • Loading branch information
Aluriak committed Feb 27, 2020
1 parent 3794a64 commit 01cf6a9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion clyngor/answers.py
Original file line number Diff line number Diff line change
Expand Up @@ -290,7 +290,7 @@ def _format(self, answer_set) -> dict or frozenset:
mapping[pred].add(args)
if self._group_atoms_with_arity:
mapping[pred, len(args)].add(args)
mapping[f'{pred}/{len(args)}'].add(args)
mapping['{}/{}'.format(pred, str(len(args)))].add(args)
if self._as_pyasp:
return {pred: as_pyasp.TermSet(args) for pred, args in mapping.items()}
else:
Expand Down

0 comments on commit 01cf6a9

Please sign in to comment.