summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChristian Poessinger <christian@poessinger.com>2020-06-07 11:18:56 +0200
committerChristian Poessinger <christian@poessinger.com>2020-06-07 11:18:56 +0200
commit3bd98a69316c38b55df3a769741d2973698fc1e7 (patch)
treec49b06cf1ff531c37e46a598c6d4c665dbb0b8f7
parent11794077958f0bcfa20949ff5cd4247f1494eb82 (diff)
downloadvyos-1x-3bd98a69316c38b55df3a769741d2973698fc1e7.tar.gz
vyos-1x-3bd98a69316c38b55df3a769741d2973698fc1e7.zip
op-mode: version: remove unused import statements
-rwxr-xr-xsrc/op_mode/version.py11
1 files changed, 1 insertions, 10 deletions
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 <http://www.gnu.org/licenses/>.
#
-# 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}