mirror of
https://github.com/valitydev/salt.git
synced 2024-11-07 08:58:59 +00:00
Python 3 compatibility changes for develop
This commit is contained in:
parent
b0f4077b1a
commit
9c2ebd193c
@ -7,10 +7,15 @@ Beacon to fire events at failed login of users
|
|||||||
beacons:
|
beacons:
|
||||||
btmp: {}
|
btmp: {}
|
||||||
'''
|
'''
|
||||||
|
|
||||||
# Import python libs
|
# Import python libs
|
||||||
|
from __future__ import absolute_import
|
||||||
import os
|
import os
|
||||||
import struct
|
import struct
|
||||||
|
|
||||||
|
# Import Salt Libs
|
||||||
|
from salt.ext.six.moves import range # pylint: disable=import-error,redefined-builtin
|
||||||
|
|
||||||
__virtualname__ = 'btmp'
|
__virtualname__ = 'btmp'
|
||||||
BTMP = '/var/log/btmp'
|
BTMP = '/var/log/btmp'
|
||||||
FMT = '<hI32s4s32s256siili4l20s'
|
FMT = '<hI32s4s32s256siili4l20s'
|
||||||
|
@ -3,6 +3,9 @@
|
|||||||
:codeauthor: :email:`Rahul Handay <rahulha@saltstack.com>`
|
:codeauthor: :email:`Rahul Handay <rahulha@saltstack.com>`
|
||||||
'''
|
'''
|
||||||
|
|
||||||
|
# Import Python Libs
|
||||||
|
from __future__ import absolute_import
|
||||||
|
|
||||||
# Import Salt Testing Libs
|
# Import Salt Testing Libs
|
||||||
from salttesting import TestCase, skipIf
|
from salttesting import TestCase, skipIf
|
||||||
from salttesting.helpers import ensure_in_syspath
|
from salttesting.helpers import ensure_in_syspath
|
||||||
|
Loading…
Reference in New Issue
Block a user