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
|
#!/usr/bin/env python2
|
||||||
# -*- coding: utf8 -*-
|
# -*- coding: utf8 -*-
|
||||||
|
from __future__ import unicode_literals
|
||||||
|
|
||||||
import argparse
|
import argparse
|
||||||
import os
|
import os
|
||||||
|
@ -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):
|
||||||
|
Loading…
Reference in New Issue
Block a user