Skip to content

Commit

Permalink
Merge pull request #6540 from Charcoal-SE/config-parser-modernization
Browse files Browse the repository at this point in the history
globalvars.py: Use ConfigParser instead of RawConfigParser

autopull
  • Loading branch information
makyen committed Jun 19, 2021
2 parents f7b9aa3 + 7a2a59a commit b217770
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions globalvars.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
from html.parser import HTMLParser
from html import unescape
from hashlib import md5
from configparser import NoOptionError, RawConfigParser
from configparser import NoOptionError, ConfigParser
import threading
# noinspection PyCompatibility
import regex
Expand Down Expand Up @@ -161,7 +161,7 @@ def reset_stat():
GlobalVars.PostScanStat.num_posts_scanned = 0
GlobalVars.PostScanStat.post_scan_time = 0

config_parser = RawConfigParser()
config_parser = ConfigParser(interpolation=None)

if os.path.isfile('config') and "pytest" not in sys.modules:
config_parser.read('config')
Expand Down

0 comments on commit b217770

Please sign in to comment.