From ee3c4c1038ed67203ba9c26f591c764f1f550910 Mon Sep 17 00:00:00 2001 From: Oliverpool Date: Tue, 19 Jul 2016 17:35:29 +0200 Subject: [PATCH] sorted already retrieves the keys --- patacrep/index.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/patacrep/index.py b/patacrep/index.py index 75d55107..212511c3 100644 --- a/patacrep/index.py +++ b/patacrep/index.py @@ -194,6 +194,6 @@ class Index: def entries_to_str(self): """Return the LaTeX code corresponding to the index.""" string = "" - for letter in sorted(self.data.keys()): + for letter in sorted(self.data): string += self.idxblock_to_str(letter, self.data[letter]) + EOL return string