Fix for python3

This commit is contained in:
Phyks 2014-08-03 19:10:30 +02:00
parent bb297adfc5
commit ed449e17e2
2 changed files with 3 additions and 2 deletions

1
bmc.py
View File

@ -1,5 +1,6 @@
#!/usr/bin/env python2 #!/usr/bin/env python2
# -*- coding: utf8 -*- # -*- coding: utf8 -*-
from __future__ import unicode_literals
import argparse import argparse
import os import os

View File

@ -179,7 +179,7 @@ def deleteFile(filename):
return False return False
found = False found = False
for key in bibtex.keys(): for key in list(bibtex.keys()):
try: try:
if os.path.samefile(bibtex[key]['file'], filename): if os.path.samefile(bibtex[key]['file'], filename):
found = True found = True
@ -288,7 +288,7 @@ def getEntries():
tools.warning("Unable to open index file.") tools.warning("Unable to open index file.")
return False return False
return bibtex.keys() return list(bibtex.keys())
def updateArXiv(entry): def updateArXiv(entry):