misc: update config load for python 3 (#36515)
This commit is contained in:
parent
4f827110bf
commit
9dd19f2f05
|
@ -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 = {}
|
||||
|
||||
|
|
Loading…
Reference in New Issue