fix previos commit
This commit is contained in:
parent
c0330a8685
commit
572248b077
|
@ -234,6 +234,9 @@ class GajimPluginConfig():
|
||||||
def keys(self):
|
def keys(self):
|
||||||
return self.data.keys()
|
return self.data.keys()
|
||||||
|
|
||||||
|
def items(self):
|
||||||
|
return self.data.items()
|
||||||
|
|
||||||
@log_calls('GajimPluginConfig')
|
@log_calls('GajimPluginConfig')
|
||||||
def save(self):
|
def save(self):
|
||||||
fd = open(self.FILE_PATH, 'wb')
|
fd = open(self.FILE_PATH, 'wb')
|
||||||
|
@ -242,7 +245,7 @@ class GajimPluginConfig():
|
||||||
|
|
||||||
@log_calls('GajimPluginConfig')
|
@log_calls('GajimPluginConfig')
|
||||||
def load(self):
|
def load(self):
|
||||||
if os.path.isfile('qwe'):
|
if os.path.isfile(self.FILE_PATH):
|
||||||
fd = open(self.FILE_PATH, 'rb')
|
fd = open(self.FILE_PATH, 'rb')
|
||||||
try:
|
try:
|
||||||
self.data = cPickle.load(fd)
|
self.data = cPickle.load(fd)
|
||||||
|
|
Loading…
Reference in New Issue