From 411b705ecc2b1210dfce0bb43ea5900b71b6281d Mon Sep 17 00:00:00 2001 From: Scott Worley Date: Fri, 12 Jun 2020 23:45:56 -0700 Subject: [PATCH 1/1] read_search_path returns a SearchPath --- pinch.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/pinch.py b/pinch.py index 632994b..7049b69 100644 --- a/pinch.py +++ b/pinch.py @@ -527,7 +527,7 @@ def git_revision_name(v: Verification, channel: Channel) -> str: process.stdout.decode().strip()) -def read_search_path(conf: configparser.SectionProxy) -> Channel: +def read_search_path(conf: configparser.SectionProxy) -> SearchPath: return Channel(**dict(conf.items())) @@ -544,9 +544,9 @@ def pin(args: argparse.Namespace) -> None: if args.channels and section not in args.channels: continue - channel = read_search_path(config[section]) + sp = read_search_path(config[section]) - channel.pin(v, config[section]) + sp.pin(v, config[section]) with open(args.channels_file, 'w') as configfile: config.write(configfile) -- 2.44.1