From 29a5cbe7460c6b2d209365a8b286a4abe6549766 Mon Sep 17 00:00:00 2001 From: adisbladis Date: Wed, 25 Oct 2023 17:36:49 +1300 Subject: [PATCH] util: deduplicate stripStr implementation --- lib/pep508.nix | 5 +---- lib/pip.nix | 9 +-------- lib/util.nix | 10 +++++++++- 3 files changed, 11 insertions(+), 13 deletions(-) diff --git a/lib/pep508.nix b/lib/pep508.nix index 04b0447..40f75a1 100644 --- a/lib/pep508.nix +++ b/lib/pep508.nix @@ -3,7 +3,7 @@ let inherit (builtins) match elemAt split foldl' substring stringLength typeOf fromJSON isString head mapAttrs elem length; inherit (lib) stringToCharacters fix; - inherit (import ./util.nix { inherit lib; }) splitComma; + inherit (import ./util.nix { inherit lib; }) splitComma stripStr; re = { operators = "([=>