summaryrefslogtreecommitdiffhomepage
path: root/libs/simpleconfigparser
diff options
context:
space:
mode:
authorLouis Vézina <[email protected]>2019-11-27 16:18:53 -0500
committerLouis Vézina <[email protected]>2019-11-27 16:18:53 -0500
commitec94960376c15c9d01fe71090d899f370f7cfc79 (patch)
tree8219f5e45dbcfe28917c667ba05b9c4dd50f56e0 /libs/simpleconfigparser
parent5007d983e3967bc46d24c5296bfeadd94d9e85f9 (diff)
downloadbazarr-ec94960376c15c9d01fe71090d899f370f7cfc79.tar.gz
bazarr-ec94960376c15c9d01fe71090d899f370f7cfc79.zip
Patch for simpleconfigparser when running under Python 3.7x and newer.
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 959ebda6a..9cce999b9 100644
--- a/libs/simpleconfigparser/__init__.py
+++ b/libs/simpleconfigparser/__init__.py
@@ -24,7 +24,7 @@ THE SOFTWARE.
"""
try:
- from backports.configparser2 import ConfigParser as configparser, NoOptionError, NoSectionError
+ from configparser import ConfigParser as configparser, NoOptionError, NoSectionError
except ImportError:
from ConfigParser import SafeConfigParser as configparser, NoOptionError, NoSectionError
@@ -123,7 +123,7 @@ class simpleconfigparser(configparser):
except NoSectionError:
return None
- def get(self, section, option, raw=False, vars=None):
+ 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('"\'')