Use python 3 style print functions

Required to pass pep8 H233.

Change-Id: I136dd2aa9fa567208a2fe1660b7a9085fde2927e
This commit is contained in:
Steve Baker 2013-08-07 13:27:45 +12:00
parent cfa33e160b
commit 28e9aac8d9
3 changed files with 6 additions and 6 deletions

View File

@ -29,15 +29,15 @@ def create_symlink(source_file, target_file, override=False):
print('%s already exists, will not replace with symlink'
% target_file)
return
print '%s -> %s' % (source_file, target_file)
print('%s -> %s' % (source_file, target_file))
os.symlink(source_file, target_file)
def check_dirs(source_dir, target_dir):
print '%s -> %s' % (source_dir, target_dir)
print('%s -> %s' % (source_dir, target_dir))
if source_dir == target_dir:
print 'Source and target are the same %s' % target_dir
print('Source and target are the same %s' % target_dir)
return False
if not os.path.exists(target_dir):

View File

@ -58,11 +58,11 @@ parser.add_argument('-k', '--key',
args = parser.parse_args()
if not args.stack_name:
print 'The Stack name must not be empty.'
print('The Stack name must not be empty.')
exit(1)
if not args.logical_resource_id:
print 'The Resource ID must not be empty'
print('The Resource ID must not be empty')
exit(1)
log_format = '%(levelname)s [%(asctime)s] %(message)s'

View File

@ -1181,7 +1181,7 @@ class Metadata(object):
def display(self):
if self._metadata is not None:
print str(self)
print(str(self))
return
def _is_valid_metadata(self):