summaryrefslogtreecommitdiff
path: root/python/vyos/version.py
diff options
context:
space:
mode:
authorChristian Breunig <christian@breunig.cc>2024-04-03 00:15:43 +0200
committerChristian Breunig <christian@breunig.cc>2024-04-03 00:15:43 +0200
commit274b2da242acd1f1f64ff1dee471e34295137c5f (patch)
tree664ecd75f20eba0115761967a7728f2ab0c086ae /python/vyos/version.py
parent4c7c168fe970b807750a05ceb66b70c0d8652535 (diff)
downloadvyos-1x-274b2da242acd1f1f64ff1dee471e34295137c5f.tar.gz
vyos-1x-274b2da242acd1f1f64ff1dee471e34295137c5f.zip
T6199: drop unused Python imports
found using "git ls-files *.py | xargs pylint | grep W0611"
Diffstat (limited to 'python/vyos/version.py')
-rw-r--r--python/vyos/version.py6
1 files changed, 2 insertions, 4 deletions
diff --git a/python/vyos/version.py b/python/vyos/version.py
index 1c5651c83..b5ed2705b 100644
--- a/python/vyos/version.py
+++ b/python/vyos/version.py
@@ -1,4 +1,4 @@
-# Copyright 2017-2023 VyOS maintainers and contributors <maintainers@vyos.io>
+# Copyright 2017-2024 VyOS maintainers and contributors <maintainers@vyos.io>
#
# This library is free software; you can redistribute it and/or
# modify it under the terms of the GNU Lesser General Public
@@ -30,7 +30,7 @@ Example of the version data dict::
"""
import os
-import json
+
import requests
import vyos.defaults
@@ -40,10 +40,8 @@ from vyos.utils.process import popen
from vyos.utils.process import run
from vyos.utils.process import DEVNULL
-
version_file = os.path.join(vyos.defaults.directories['data'], 'version.json')
-
def get_version_data(fname=version_file):
"""
Get complete version data