Refactor import * with only required imports

Import only the required functions instead of all the functions from the
module to reduce the unnecessary functions in the namespace and prevent
shadowing. Note: All code changes are non-functional.

All new code of the whole pull request, including one or several
files that are either new files or modified ones, are contributed
under the BSD-new license. I am contributing on behalf of my
employer Amazon Web Services, Inc.
This commit is contained in:
Souradeep Saha 2024-06-21 17:17:47 +00:00 committed by Andrew Hutchings
parent 008bddaa6c
commit 4a89f79b6a

View file

@ -7,7 +7,7 @@ Author: Mathias Gug <mathias.gug@canonical.com>
from __future__ import print_function, unicode_literals
import os, os.path
from apport.hookutils import *
from apport.hookutils import path_to_key, read_file, attach_conffiles, attach_mac_events, attach_file
def _add_my_conf_files(report, filename):
key = 'MySQLConf' + path_to_key(filename)