From 3bd98a69316c38b55df3a769741d2973698fc1e7 Mon Sep 17 00:00:00 2001 From: Christian Poessinger Date: Sun, 7 Jun 2020 11:18:56 +0200 Subject: op-mode: version: remove unused import statements --- src/op_mode/version.py | 11 +---------- 1 file changed, 1 insertion(+), 10 deletions(-) (limited to 'src/op_mode/version.py') diff --git a/src/op_mode/version.py b/src/op_mode/version.py index c335eefce..1baed2bd5 100755 --- a/src/op_mode/version.py +++ b/src/op_mode/version.py @@ -1,6 +1,6 @@ #!/usr/bin/env python3 # -# Copyright (C) 2016 VyOS maintainers and contributors +# Copyright (C) 2016-2020 VyOS maintainers and contributors # # This program is free software; you can redistribute it and/or modify # it under the terms of the GNU General Public License version 2 or later as @@ -14,13 +14,10 @@ # You should have received a copy of the GNU General Public License # along with this program. If not, see . # -# File: vyos-show-version # Purpose: # Displays image version and system information. # Used by the "run show version" command. - -import os import sys import argparse import json @@ -28,19 +25,13 @@ import json import vyos.version import vyos.limericks -from vyos.util import cmd from vyos.util import call -from vyos.util import run -from vyos.util import read_file -from vyos.util import DEVNULL - parser = argparse.ArgumentParser() parser.add_argument("-a", "--all", action="store_true", help="Include individual package versions") parser.add_argument("-f", "--funny", action="store_true", help="Add something funny to the output") parser.add_argument("-j", "--json", action="store_true", help="Produce JSON output") - version_output_tmpl = """ Version: VyOS {version} Release Train: {release_train} -- cgit v1.2.3