diff options
author | morpheus65535 <[email protected]> | 2019-01-15 22:11:15 -0500 |
---|---|---|
committer | morpheus65535 <[email protected]> | 2019-01-15 22:12:57 -0500 |
commit | 3271d1a12bb9d3d13ea96653b601ec687049ffa8 (patch) | |
tree | 45c3d9a987de79c3466cf651f3b2ddd292bbd54c /libs/simpleconfigparser | |
parent | 7a4e2a5a161e6dd92ea6ae59fd5c582355769661 (diff) | |
download | bazarr-3271d1a12bb9d3d13ea96653b601ec687049ffa8.tar.gz bazarr-3271d1a12bb9d3d13ea96653b601ec687049ffa8.zip |
Fix for ConfigParser2 import.
Diffstat (limited to 'libs/simpleconfigparser')
-rw-r--r-- | libs/simpleconfigparser/__init__.py | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/libs/simpleconfigparser/__init__.py b/libs/simpleconfigparser/__init__.py index d2f7d81f1..1a515024c 100644 --- a/libs/simpleconfigparser/__init__.py +++ b/libs/simpleconfigparser/__init__.py @@ -23,10 +23,12 @@ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. """ -try: - from configparser2 import ConfigParser as configparser, NoOptionError, NoSectionError -except ImportError: - from ConfigParser import SafeConfigParser as configparser, NoOptionError, NoSectionError +# Bazarr patch to use custom ConfigParser2: +from ConfigParser2 import ConfigParser as configparser, NoOptionError, NoSectionError +#try: +# from configparser2 import ConfigParser as configparser, NoOptionError, NoSectionError +#except ImportError: +# from ConfigParser import SafeConfigParser as configparser, NoOptionError, NoSectionError class simpleconfigparser(configparser): |