mirror of
https://github.com/saltstack/salt.git
synced 2025-04-17 10:10:20 +00:00
Make use of the print()
function.
This commit is contained in:
parent
f525d2aa47
commit
69d0f907f9
7 changed files with 12 additions and 3 deletions
|
@ -1,5 +1,6 @@
|
|||
# -*- coding: utf-8 -*-
|
||||
|
||||
from __future__ import print_function
|
||||
import yaml
|
||||
import subprocess
|
||||
import hashlib
|
||||
|
|
|
@ -8,6 +8,7 @@ This script is a generic tool to test event output
|
|||
'''
|
||||
|
||||
# Import Python libs
|
||||
from __future__ import print_function
|
||||
import optparse
|
||||
import pprint
|
||||
import time
|
||||
|
@ -65,7 +66,7 @@ def listen(sock_dir, node, id=None):
|
|||
sock_dir,
|
||||
id=id
|
||||
)
|
||||
print event.puburi
|
||||
print(event.puburi)
|
||||
while True:
|
||||
ret = event.get_event(full=True)
|
||||
if ret is None:
|
||||
|
|
|
@ -5,6 +5,7 @@ Set up the Salt integration test suite
|
|||
'''
|
||||
|
||||
# Import Python libs
|
||||
from __future__ import print_function
|
||||
import os
|
||||
import sys
|
||||
import time
|
||||
|
|
|
@ -9,6 +9,7 @@ This script is intended to be shell-centric!!
|
|||
'''
|
||||
|
||||
# Import python libs
|
||||
from __future__ import print_function
|
||||
import os
|
||||
import re
|
||||
import sys
|
||||
|
|
|
@ -7,6 +7,7 @@ on a single system to test scale capabilities
|
|||
'''
|
||||
|
||||
# Import Python Libs
|
||||
from __future__ import print_function
|
||||
import os
|
||||
import pwd
|
||||
import time
|
||||
|
|
|
@ -4,6 +4,7 @@
|
|||
Discover all instances of unittest.TestCase in this directory.
|
||||
'''
|
||||
# Import python libs
|
||||
from __future__ import print_function
|
||||
import os
|
||||
import resource
|
||||
import tempfile
|
||||
|
@ -31,7 +32,7 @@ try:
|
|||
if SALT_ROOT:
|
||||
os.chdir(SALT_ROOT)
|
||||
except OSError as err:
|
||||
print 'Failed to change directory to salt\'s source: {0}'.format(err)
|
||||
print('Failed to change directory to salt\'s source: {0}'.format(err))
|
||||
|
||||
REQUIRED_OPEN_FILES = 3072
|
||||
|
||||
|
|
|
@ -1,5 +1,8 @@
|
|||
# -*- coding: utf-8 -*-
|
||||
|
||||
# Import python libs
|
||||
from __future__ import print_function
|
||||
|
||||
# Import Salt Testing libs
|
||||
from salttesting import skipIf, TestCase
|
||||
from salttesting.helpers import ensure_in_syspath
|
||||
|
@ -197,7 +200,7 @@ class PostgresTestCase(TestCase):
|
|||
"/usr/bin/pgsql --no-align --no-readline --username testuser "
|
||||
"--host testhost --port testport "
|
||||
"--dbname maint_db -c 'DROP ROLE testgroup'",
|
||||
host='testhost', user='testuser',
|
||||
host='testhost', user='testuser',
|
||||
password='foo', runas='foo', port='testport')
|
||||
|
||||
@patch('salt.modules.postgres._run_psql',
|
||||
|
|
Loading…
Add table
Reference in a new issue