compatibility with Python 2.6

This commit is contained in:
Christoph 2013-11-12 01:28:11 +01:00
parent 5bd8462964
commit 542b8f4512

View File

@ -112,7 +112,7 @@ def loaderRaw(var):
def loaderMD(var): def loaderMD(var):
fn = var.group(1) fn = var.group(1)
# use different MD.dat's for python 2 vs 3 incase user switches versions, as they are not compatible # use different MD.dat's for python 2 vs 3 incase user switches versions, as they are not compatible
db = shelve.open('build/MDv' + str(sys.version_info.major) + '.dat') db = shelve.open('build/MDv' + str(sys.version_info[0]) + '.dat')
if 'files' in db: if 'files' in db:
files = db['files'] files = db['files']
else: else: