From 95e7a63aa9eeb1dd76129edcf186d81350b43dd2 Mon Sep 17 00:00:00 2001 From: sinanmohd Date: Mon, 23 Sep 2024 08:00:19 +0530 Subject: bin/nixpkgs_drv_pname: close fds asap, don't wait for gc --- bin/nixpkgs_drv_pname.py | 1 + 1 file changed, 1 insertion(+) (limited to 'bin') diff --git a/bin/nixpkgs_drv_pname.py b/bin/nixpkgs_drv_pname.py index 52852cf..88cf732 100755 --- a/bin/nixpkgs_drv_pname.py +++ b/bin/nixpkgs_drv_pname.py @@ -80,6 +80,7 @@ class drv: def pname_from_drv_path(drv_path: str) -> str | None: f = open(drv_path, 'r') drv_string = f.readline() + f.close() match = re.search('"pname","([^"]+)', drv_string) if match is not None: return match.group(1) -- cgit v1.2.3