Make use of the print() function.

This commit is contained in:
Pedro Algarvio 2014-02-03 11:07:11 +00:00
parent f525d2aa47
commit 69d0f907f9
7 changed files with 12 additions and 3 deletions

View file

@ -1,5 +1,6 @@
# -*- coding: utf-8 -*-
from __future__ import print_function
import yaml
import subprocess
import hashlib

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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