mirror of
https://github.com/saltstack/salt.git
synced 2025-04-16 17:50:20 +00:00
Py3 compatibility fixes.
This commit is contained in:
parent
788bb913c6
commit
b3807f5b22
1 changed files with 2 additions and 2 deletions
|
@ -4,7 +4,7 @@ Simple script to dump the contents of msgpack files to the terminal
|
|||
'''
|
||||
|
||||
# Import python libs
|
||||
from __future__ import absolute_import
|
||||
from __future__ import absolute_import, print_function
|
||||
import os
|
||||
import sys
|
||||
import pprint
|
||||
|
@ -18,7 +18,7 @@ def dump(path):
|
|||
Read in a path and dump the contents to the screen
|
||||
'''
|
||||
if not os.path.isfile(path):
|
||||
print 'Not a file'
|
||||
print('Not a file')
|
||||
return
|
||||
with open(path, 'rb') as fp_:
|
||||
data = msgpack.loads(fp_.read())
|
||||
|
|
Loading…
Add table
Reference in a new issue