From: Scott Worley Date: Sat, 13 Jun 2020 06:45:56 +0000 (-0700) Subject: read_search_path returns a SearchPath X-Git-Tag: 2.0.0~28 X-Git-Url: http://git.scottworley.com/pinch/commitdiff_plain/411b705ecc2b1210dfce0bb43ea5900b71b6281d?ds=inline read_search_path returns a SearchPath --- 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)