|
1 | | -# (c) 2014, Toshio Kuratomi <[email protected]> |
2 | | -# |
3 | | -# This file is part of Ansible |
4 | | -# |
5 | | -# Ansible is free software: you can redistribute it and/or modify |
6 | | -# it under the terms of the GNU General Public License as published by |
7 | | -# the Free Software Foundation, either version 3 of the License, or |
8 | | -# (at your option) any later version. |
9 | | -# |
10 | | -# Ansible is distributed in the hope that it will be useful, |
11 | | -# but WITHOUT ANY WARRANTY; without even the implied warranty of |
12 | | -# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
13 | | -# GNU General Public License for more details. |
14 | | -# |
15 | | -# You should have received a copy of the GNU General Public License |
16 | | -# along with Ansible. If not, see <http://www.gnu.org/licenses/>. |
| 1 | +# Copyright (c) 2014, Toshio Kuratomi <[email protected]> |
| 2 | +# GNU General Public License v3.0+ (see LICENSES/GPL-3.0-or-later.txt or https://www.gnu.org/licenses/gpl-3.0.txt) |
| 3 | +# SPDX-License-Identifier: GPL-3.0-or-later |
17 | 4 |
|
18 | 5 | # Make coding more python3-ish |
19 | 6 | from __future__ import (absolute_import, division, print_function) |
|
33 | 20 | # Allow wildcard import because we really do want to import all of mock's |
34 | 21 | # symbols into this compat shim |
35 | 22 | # pylint: disable=wildcard-import,unused-wildcard-import |
36 | | - from unittest.mock import * |
| 23 | + from unittest.mock import * # noqa: F401, pylint: disable=unused-import |
37 | 24 | except ImportError: |
38 | 25 | # Python 2 |
39 | 26 | # pylint: disable=wildcard-import,unused-wildcard-import |
40 | 27 | try: |
41 | | - from mock import * |
| 28 | + from mock import * # noqa: F401, pylint: disable=unused-import |
42 | 29 | except ImportError: |
43 | 30 | print('You need the mock library installed on python2.x to run tests') |
44 | 31 |
|
|
0 commit comments