Skip to content

Commit 1d8fdb5

Browse files
committed
delete a line
1 parent ebc9b2f commit 1d8fdb5

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

mypy/config_parser.py

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -224,7 +224,6 @@ def _parse_individual_file(
224224
if not os.path.exists(config_file):
225225
return None
226226

227-
config_parser = configparser.RawConfigParser()
228227
parser: MutableMapping[str, Any]
229228
try:
230229
if is_toml(config_file):
@@ -238,8 +237,8 @@ def _parse_individual_file(
238237
parser = destructure_overrides(toml_data)
239238
config_types = toml_config_types
240239
else:
241-
config_parser.read(config_file)
242-
parser = config_parser
240+
parser = configparser.RawConfigParser()
241+
parser.read(config_file)
243242
config_types = ini_config_types
244243

245244
except (tomllib.TOMLDecodeError, configparser.Error, ConfigTOMLValueError) as err:

0 commit comments

Comments
 (0)