Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit d63c203

Browse files
twangboydwoz
authored andcommitted
Drop py3 support (pre-commit)
1 parent 542b0a1 commit d63c203

File tree

3 files changed

+1
-12
lines changed

3 files changed

+1
-12
lines changed

salt/grains/pending_reboot.py

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,8 @@
1-
# -*- coding: utf-8 -*-
21
"""
32
Grain that indicates the system is pending a reboot
43
See functions in salt.utils.win_system to see what conditions would indicate
54
a reboot is pending
65
"""
7-
from __future__ import absolute_import, print_function, unicode_literals
8-
96
# Import python libs
107
import logging
118

salt/utils/win_system.py

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
# -*- coding: utf-8 -*-
21
"""
32
Win System Utils
43
@@ -9,9 +8,6 @@
98
# NOTE: DO NOT USE RAW STRINGS IN THIS MODULE! UNICODE_LITERALS DOES NOT PLAY
109
# NICELY WITH RAW STRINGS CONTAINING \u or \U.
1110

12-
# When production windows installer is using Python 3, Python 2 code can be removed
13-
from __future__ import absolute_import, print_function, unicode_literals
14-
1511
# Import python libs
1612
import logging
1713

tests/unit/utils/test_win_system.py

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,4 @@
1-
# -*- coding: utf-8 -*-
2-
31
# Import Python Libs
4-
from __future__ import absolute_import, print_function, unicode_literals
5-
62
import os
73

84
# Import Salt Libs
@@ -26,7 +22,7 @@ class WinSystemImportTestCase(TestCase):
2622
def test_import(self):
2723
if isinstance(win_system, Exception):
2824
raise Exception(
29-
"Importing win_system caused traceback: {0}".format(win_system)
25+
"Importing win_system caused traceback: {}".format(win_system)
3026
)
3127

3228

0 commit comments

Comments
 (0)