mirror of
https://github.com/MariaDB/server.git
synced 2025-01-15 19:42:28 +01:00
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:
parent
008bddaa6c
commit
4a89f79b6a
1 changed files with 1 additions and 1 deletions
2
debian/additions/source_mariadb-10.5.py
vendored
2
debian/additions/source_mariadb-10.5.py
vendored
|
@ -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)
|
||||
|
|
Loading…
Reference in a new issue