From ed449e17e244371400ef308bca63472423d89093 Mon Sep 17 00:00:00 2001 From: Phyks Date: Sun, 3 Aug 2014 19:10:30 +0200 Subject: [PATCH] Fix for python3 --- bmc.py | 1 + libbmc/backend.py | 4 ++-- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/bmc.py b/bmc.py index a3007a7..297f46e 100755 --- a/bmc.py +++ b/bmc.py @@ -1,5 +1,6 @@ #!/usr/bin/env python2 # -*- coding: utf8 -*- +from __future__ import unicode_literals import argparse import os diff --git a/libbmc/backend.py b/libbmc/backend.py index ec784ab..f20b1e0 100644 --- a/libbmc/backend.py +++ b/libbmc/backend.py @@ -179,7 +179,7 @@ def deleteFile(filename): return False found = False - for key in bibtex.keys(): + for key in list(bibtex.keys()): try: if os.path.samefile(bibtex[key]['file'], filename): found = True @@ -288,7 +288,7 @@ def getEntries(): tools.warning("Unable to open index file.") return False - return bibtex.keys() + return list(bibtex.keys()) def updateArXiv(entry):