From 05b82d2f29641e479096d63096869e8759eb8d62 Mon Sep 17 00:00:00 2001 From: Scott Gigante Date: Thu, 31 Aug 2017 00:20:04 -0400 Subject: [PATCH] import signal --- picopore/parse_args.py | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/picopore/parse_args.py b/picopore/parse_args.py index 00a7274..a619d13 100644 --- a/picopore/parse_args.py +++ b/picopore/parse_args.py @@ -17,8 +17,6 @@ import os import sys -import subprocess -import warnings from argparse import ArgumentParser, ArgumentError, Action, RawDescriptionHelpFormatter from builtins import input @@ -26,15 +24,18 @@ from picopore.version import __version__ def checkDeprecatedArgs(): + import subprocess + import warnings + import signal args = sys.argv[1:] if "--realtime" in args: args.remove('--realtime') args = ['picopore-realtime'] + args - warnings.warn("picopore --realtime will be deprecated in 1.3.0. Use picopore-realtime instead.",FutureWarning) + warnings.warn("picopore --realtime will be deprecated in 2.0. Use picopore-realtime instead.",FutureWarning) elif "--test" in args: args.remove('--test') args = ['picopore-test'] + args - warnings.warn("picopore --test will be deprecated in 1.3.0. Use picopore-test instead.",FutureWarning) + warnings.warn("picopore --test will be deprecated in 2.0. Use picopore-test instead.",FutureWarning) else: return p = subprocess.Popen(args)