From a1c1d2b975c6f55a704fcc958c4c32a2d1299b1d Mon Sep 17 00:00:00 2001 From: Jakob Scheid Date: Sat, 7 Feb 2026 15:38:37 +0100 Subject: [PATCH] =?UTF-8?q?=09ge=C3=A4ndert:=20=20=20=20=20=20=20src/confi?= =?UTF-8?q?g=5Fparser/ini.py=20=09ge=C3=A4ndert:=20=20=20=20=20=20=20src/c?= =?UTF-8?q?onfig=5Fparser/json.py=20=09ge=C3=A4ndert:=20=20=20=20=20=20=20?= =?UTF-8?q?src/config=5Fparser/parse/json.py=20=09ge=C3=A4ndert:=20=20=20?= =?UTF-8?q?=20=20=20=20tests/test=5Fconfiguration=5Fclass.py?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/config_parser/ini.py | 2 -- src/config_parser/json.py | 5 +---- src/config_parser/parse/json.py | 2 +- tests/test_configuration_class.py | 2 -- 4 files changed, 2 insertions(+), 9 deletions(-) diff --git a/src/config_parser/ini.py b/src/config_parser/ini.py index 7761e93..7c5c6cf 100644 --- a/src/config_parser/ini.py +++ b/src/config_parser/ini.py @@ -1,5 +1,3 @@ -import sys, os; sys.path = [os.path.dirname(__file__)] + sys.path - import typing from ._configuration import Configuration from .parse.ini import COMMENT_PREFIXES, QUOTATION_MARKS, parse_ini diff --git a/src/config_parser/json.py b/src/config_parser/json.py index 5302e84..e56563f 100644 --- a/src/config_parser/json.py +++ b/src/config_parser/json.py @@ -1,8 +1,5 @@ -import sys, os; sys.path = [os.path.dirname(__file__)] + sys.path - -import typing from ._configuration import Configuration -from .parse.json import parse_json, parse_type, JSONObject, JSONString, JSONNumber, JSONNull, JSONBoolean, JSONArray +from .parse.json import parse_type, JSONObject, JSONString, JSONNumber, JSONNull, JSONBoolean, JSONArray from .exceptions import JSONTypeError def _configuration(data): diff --git a/src/config_parser/parse/json.py b/src/config_parser/parse/json.py index 4ce3214..42ac428 100644 --- a/src/config_parser/parse/json.py +++ b/src/config_parser/parse/json.py @@ -1,4 +1,4 @@ -from ..exceptions import EscapeSequenceSyntaxError, JSONValueSyntaxError, JSONNumberSyntaxError, JSONStringSyntaxError, JSONBooleanSyntaxError, JSONNullSyntaxError, JSONArraySyntaxError, JSONObjectSyntaxError, JSONTypeError +from ..exceptions import EscapeSequenceSyntaxError, JSONValueSyntaxError, JSONNumberSyntaxError, JSONStringSyntaxError, JSONBooleanSyntaxError, JSONNullSyntaxError, JSONArraySyntaxError, JSONObjectSyntaxError import typing import re diff --git a/tests/test_configuration_class.py b/tests/test_configuration_class.py index 595fb91..938fd59 100644 --- a/tests/test_configuration_class.py +++ b/tests/test_configuration_class.py @@ -1,5 +1,3 @@ -import sys, os; sys.path.append(os.getcwd()) - from src.config_parser import Configuration