Skip to content

Commit ab4a32f

Browse files
pipboy96zoracon
authored andcommitted
Fix DeprecationWarning in HTTPS Everywhere Checker (EFForg#17596)
* Fix DeprecationWarning in HTTPS Everywhere Checker Example of warning: ``` test/rules/src/https_everywhere_checker/check_rules.py:311: DeprecationWarning: The SafeConfigParser class has been renamed to ConfigParser in Python 3.2. This alias will be removed in future versions. Use ConfigParser directly instead. config = SafeConfigParser() ``` * Update check_rules.py
1 parent 585c984 commit ab4a32f

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

test/rules/src/https_everywhere_checker/check_rules.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
import threading
1515
import time
1616

17-
from configparser import SafeConfigParser
17+
from configparser import ConfigParser
1818

1919
from lxml import etree
2020

@@ -308,7 +308,7 @@ def cli():
308308
help='write results in json file')
309309
args = parser.parse_args()
310310

311-
config = SafeConfigParser()
311+
config = ConfigParser()
312312
config.read(args.checker_config)
313313

314314
logfile = config.get("log", "logfile")

0 commit comments

Comments
 (0)