From e30294fd2ea128c127d5b6af5cad56f835080181 Mon Sep 17 00:00:00 2001 From: Christian Poessinger Date: Fri, 20 Mar 2020 17:58:08 +0100 Subject: ntp: only import deepcopy from copy --- src/conf_mode/ntp.py | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) (limited to 'src') diff --git a/src/conf_mode/ntp.py b/src/conf_mode/ntp.py index f706d502f..c3e8d51b3 100755 --- a/src/conf_mode/ntp.py +++ b/src/conf_mode/ntp.py @@ -1,6 +1,6 @@ #!/usr/bin/env python3 # -# Copyright (C) 2018 VyOS maintainers and contributors +# Copyright (C) 2018-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 @@ -13,15 +13,13 @@ # # You should have received a copy of the GNU General Public License # along with this program. If not, see . -# -# import sys import os - import jinja2 import ipaddress -import copy + +from copy import deepcopy from vyos.config import Config from vyos import ConfigError @@ -78,7 +76,7 @@ default_config_data = { } def get_config(): - ntp = copy.deepcopy(default_config_data) + ntp = deepcopy(default_config_data) conf = Config() if not conf.exists('system ntp'): return None -- cgit v1.2.3