Fix for python3
This commit is contained in:
parent
bb297adfc5
commit
ed449e17e2
1
bmc.py
1
bmc.py
@ -1,5 +1,6 @@
|
||||
#!/usr/bin/env python2
|
||||
# -*- coding: utf8 -*-
|
||||
from __future__ import unicode_literals
|
||||
|
||||
import argparse
|
||||
import os
|
||||
|
@ -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):
|
||||
|
Loading…
Reference in New Issue
Block a user