From 7f53230a95b8d02accc4084299741e608c3cd8e8 Mon Sep 17 00:00:00 2001 From: A_D Date: Sun, 22 Nov 2020 16:10:10 +0200 Subject: [PATCH] Cleaned up imports --- config.py | 11 +++-------- 1 file changed, 3 insertions(+), 8 deletions(-) diff --git a/config.py b/config.py index e1c875aa..90eb8600 100644 --- a/config.py +++ b/config.py @@ -8,20 +8,16 @@ Linux uses a file, but for commonality it's still a flat data structure. # spell-checker: words HKEY FOLDERID wchar wstring edcdhkey import abc +import contextlib import functools import logging -import numbers import os import pathlib import sys import warnings -import contextlib from abc import abstractmethod -from configparser import ConfigParser, NoOptionError -from os import getenv, makedirs, mkdir, pardir -from os.path import dirname, expanduser, isdir, join, normpath from sys import platform -from typing import Any, Callable, TYPE_CHECKING, Dict, List, Optional, Type, TypeVar, Union +from typing import TYPE_CHECKING, Any, Callable, Dict, List, Optional, Type, TypeVar, Union import semantic_version @@ -126,8 +122,7 @@ elif platform == 'win32': return retval elif platform == 'linux': - import codecs - from configparser import RawConfigParser + from configparser import ConfigParser _T = TypeVar('_T')