misc: update config load for python 3 (#36515)

This commit is contained in:
Frédéric Péters 2019-11-12 11:51:07 +01:00
parent 4f827110bf
commit 9dd19f2f05
1 changed files with 1 additions and 1 deletions

View File

@ -701,7 +701,7 @@ class QommonPublisher(Publisher, object):
def reload_cfg(self):
filename = os.path.join(self.app_dir, 'config.pck')
try:
self.cfg = cPickle.load(file(filename))
self.cfg = cPickle.load(open(filename, 'rb'))
except:
self.cfg = {}