compatibility with Python 2.6
This commit is contained in:
parent
5bd8462964
commit
542b8f4512
2
build.py
2
build.py
@ -112,7 +112,7 @@ def loaderRaw(var):
|
||||
def loaderMD(var):
|
||||
fn = var.group(1)
|
||||
# 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:
|
||||
files = db['files']
|
||||
else:
|
||||
|
Loading…
x
Reference in New Issue
Block a user