diff options
author | Daniil Baturin <daniil@vyos.io> | 2024-04-04 15:09:55 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-04-04 15:09:55 +0200 |
commit | 7f077a0dfc410d974f891e34f0726809d4b1a5b1 (patch) | |
tree | 637bdf33a0e87ae735ecd3f19ab120863b3f30be /python/vyos/version.py | |
parent | d729069c58c0a670e1f57d6d12c57a41e330742b (diff) | |
parent | ca84e6845e6cfeb5f4f5798594b390afb735901f (diff) | |
download | vyos-1x-7f077a0dfc410d974f891e34f0726809d4b1a5b1.tar.gz vyos-1x-7f077a0dfc410d974f891e34f0726809d4b1a5b1.zip |
Merge pull request #3241 from c-po/spring-cleaning-sagitta
T6199: spring cleaning - drop unused Python imports (backport #3240)
Diffstat (limited to 'python/vyos/version.py')
-rw-r--r-- | python/vyos/version.py | 6 |
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 |