Code cleanup
This commit is contained in:
@@ -1,13 +1,10 @@
|
||||
from __future__ import with_statement
|
||||
from couchpotato.api import addApiView
|
||||
from couchpotato.core.event import addEvent, fireEvent
|
||||
from couchpotato.core.helpers.encoding import isInt, toUnicode
|
||||
from couchpotato.core.helpers.encoding import toUnicode
|
||||
from couchpotato.core.helpers.variable import mergeDicts, tryInt, tryFloat
|
||||
from couchpotato.core.settings.model import Properties
|
||||
import ConfigParser
|
||||
import os.path
|
||||
import time
|
||||
import traceback
|
||||
|
||||
|
||||
class Settings(object):
|
||||
@@ -92,7 +89,7 @@ class Settings(object):
|
||||
self.setType(section_name, option_name, option.get('type'))
|
||||
|
||||
if save:
|
||||
self.save(self)
|
||||
self.save()
|
||||
|
||||
def set(self, section, option, value):
|
||||
return self.p.set(section, option, value)
|
||||
|
||||
Reference in New Issue
Block a user