|
|
@ -24,7 +24,7 @@ THE SOFTWARE.
|
|
|
|
"""
|
|
|
|
"""
|
|
|
|
|
|
|
|
|
|
|
|
try:
|
|
|
|
try:
|
|
|
|
from backports.configparser2 import ConfigParser as configparser, NoOptionError, NoSectionError
|
|
|
|
from configparser import ConfigParser as configparser, NoOptionError, NoSectionError
|
|
|
|
except ImportError:
|
|
|
|
except ImportError:
|
|
|
|
from ConfigParser import SafeConfigParser as configparser, NoOptionError, NoSectionError
|
|
|
|
from ConfigParser import SafeConfigParser as configparser, NoOptionError, NoSectionError
|
|
|
|
|
|
|
|
|
|
|
@ -123,7 +123,7 @@ class simpleconfigparser(configparser):
|
|
|
|
except NoSectionError:
|
|
|
|
except NoSectionError:
|
|
|
|
return None
|
|
|
|
return None
|
|
|
|
|
|
|
|
|
|
|
|
def get(self, section, option, raw=False, vars=None):
|
|
|
|
def get(self, section, option, raw=False, vars=None, fallback=None):
|
|
|
|
try:
|
|
|
|
try:
|
|
|
|
# Strip out quotes from the edges
|
|
|
|
# Strip out quotes from the edges
|
|
|
|
return configparser.get(self, section, option, raw=raw, vars=vars).strip('"\'')
|
|
|
|
return configparser.get(self, section, option, raw=raw, vars=vars).strip('"\'')
|
|
|
|