We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 7c3967f commit e6dff1bCopy full SHA for e6dff1b
zulip/zulip/__init__.py
@@ -10,7 +10,7 @@
10
import traceback
11
import types
12
import urllib.parse
13
-from configparser import SafeConfigParser
+from configparser import ConfigParser
14
from typing import (
15
IO,
16
Any,
@@ -425,9 +425,9 @@ def __init__(
425
config_file = get_default_config_filename()
426
427
if config_file is not None and os.path.exists(config_file):
428
- config = SafeConfigParser()
+ config = ConfigParser()
429
with open(config_file) as f:
430
- config.readfp(f, config_file)
+ config.read_file(f, config_file)
431
if api_key is None:
432
api_key = config.get("api", "key")
433
if email is None:
0 commit comments