From 985a1288f3d9d0fbc1ac9eaa598cbf0fa238411b Mon Sep 17 00:00:00 2001 From: "Shawn M. Jones" Date: Wed, 8 Sep 2021 18:10:13 -0600 Subject: [PATCH] identify GUI script (#44) now conforms to style of #45, #46 --- hypercane-gui/scripts/identify.py | 9 +-------- 1 file changed, 1 insertion(+), 8 deletions(-) diff --git a/hypercane-gui/scripts/identify.py b/hypercane-gui/scripts/identify.py index 8f0b41d..37f9d72 100644 --- a/hypercane-gui/scripts/identify.py +++ b/hypercane-gui/scripts/identify.py @@ -8,13 +8,6 @@ from hypercane.version import __useragent__ from hypercane.actions import get_logger, calculate_loglevel - -identify_functions = { - "mementos": hypercane.actions.identify.discover_mementos, - "timemaps": hypercane.actions.identify.discover_timemaps, - "original-resources": hypercane.actions.identify.discover_original_resources -} - if __name__ == '__main__': for item in identify_parser._subparsers._group_actions: @@ -55,5 +48,5 @@ hypercane.errors.errorstore.type = hypercane.errors.FileErrorStore(args.errorfilename) print("starting to identify {} in input".format(args.which)) - identify_functions[args.which](args) + args.exec(args) print("done identifying {}".format(args.which))