From bd6ad626d9a343b665bad1bc19e671fc54255c52 Mon Sep 17 00:00:00 2001 From: Alexandre Aubin Date: Wed, 21 Dec 2022 20:28:51 +0100 Subject: [PATCH] Lazyload toml only when it's actually needed to simplify boring dependencies issues --- package_linter.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/package_linter.py b/package_linter.py index 17f36e9..07bb50e 100755 --- a/package_linter.py +++ b/package_linter.py @@ -1,7 +1,6 @@ #!/usr/bin/env python3 # -*- coding: utf8 -*- -import toml import sys import os import re @@ -1505,6 +1504,7 @@ class Manifest(TestSuite): self.raw_manifest, object_pairs_hook=check_for_duplicate_keys ) else: + import toml self.manifest = toml.loads(self.raw_manifest) except Exception as e: print(