1
0
Fork 0
mirror of https://github.com/morpheus65535/bazarr synced 2024-12-25 17:17:12 +00:00

Patch for simpleconfigparser when running under Python 3.7x and newer.

This commit is contained in:
Louis Vézina 2019-11-27 16:18:53 -05:00
parent 5007d983e3
commit ec94960376
2 changed files with 3 additions and 3 deletions

View file

@ -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('"\'')

View file

@ -22,7 +22,7 @@ pytz=2018.4
rarfile=3.0 rarfile=3.0
requests=2.18.4 requests=2.18.4
six=1.11.0 six=1.11.0
SimpleConfigParser=0.1.0 SimpleConfigParser=0.1.0 <-- modified version: do not update!!!
stevedore=1.28.0 stevedore=1.28.0
subliminal=2.1.0dev subliminal=2.1.0dev
tzlocal=1.5.1 tzlocal=1.5.1