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):