Browse Source

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.
remotes/origin/bb-10.5-andrei
Souradeep Saha 1 year ago
committed by Andrew Hutchings
parent
commit
4a89f79b6a
  1. 2
      debian/additions/source_mariadb-10.5.py

2
debian/additions/source_mariadb-10.5.py

@ -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…
Cancel
Save