summaryrefslogtreecommitdiffhomepage
path: root/libs/simpleconfigparser
diff options
context:
space:
mode:
authorLouis Vézina <[email protected]>2019-12-23 14:03:31 -0500
committerLouis Vézina <[email protected]>2019-12-23 14:03:31 -0500
commitd4fdee1e9f81d0a3d0e07a0e6a9004953fb62cbe (patch)
tree8e38ac0a19107164815befd5c70eb6c200b88282 /libs/simpleconfigparser
parentb41affa267170bb27bcc27c09b773bd3057fc3bb (diff)
downloadbazarr-d4fdee1e9f81d0a3d0e07a0e6a9004953fb62cbe.tar.gz
bazarr-d4fdee1e9f81d0a3d0e07a0e6a9004953fb62cbe.zip
Fix for #711.
Diffstat (limited to 'libs/simpleconfigparser')
-rw-r--r--libs/simpleconfigparser/__init__.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/libs/simpleconfigparser/__init__.py b/libs/simpleconfigparser/__init__.py
index 9cce999b9..c84ccbacc 100644
--- a/libs/simpleconfigparser/__init__.py
+++ b/libs/simpleconfigparser/__init__.py
@@ -26,7 +26,7 @@ THE SOFTWARE.
try:
from configparser import ConfigParser as configparser, NoOptionError, NoSectionError
except ImportError:
- from ConfigParser import SafeConfigParser as configparser, NoOptionError, NoSectionError
+ from ConfigParser import RawConfigParser as configparser, NoOptionError, NoSectionError
class simpleconfigparser(configparser):
@@ -126,6 +126,6 @@ class simpleconfigparser(configparser):
def get(self, section, option, raw=False, vars=None, fallback=None):
try:
# Strip out quotes from the edges
- return configparser.get(self, section, option, raw=raw, vars=vars).strip('"\'')
+ return configparser.get(self, section, option).strip('"\'')
except NoOptionError:
return None