Python 3 compatibility changes for develop

This commit is contained in:
rallytime 2015-04-02 14:04:28 -06:00
parent b0f4077b1a
commit 9c2ebd193c
2 changed files with 8 additions and 0 deletions

View File

@ -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'

View File

@ -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