From 91ba836a0032b6163db3da599e1d12a5dc98fe26 Mon Sep 17 00:00:00 2001 From: Lance Parsons Date: Mon, 22 Jul 2013 14:24:13 -0400 Subject: [PATCH] Fix unicode issue when printing history names in cleanup_datasets.py script --- scripts/cleanup_datasets/cleanup_datasets.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/cleanup_datasets/cleanup_datasets.py b/scripts/cleanup_datasets/cleanup_datasets.py index d9b72554f5f..eb0a8828106 100644 --- a/scripts/cleanup_datasets/cleanup_datasets.py +++ b/scripts/cleanup_datasets/cleanup_datasets.py @@ -175,7 +175,7 @@ def purge_histories( app, cutoff_time, remove_from_disk, info_only = False, forc app.model.History.table.c.update_time < cutoff_time ) ) \ .options( eagerload( 'datasets' ) ) for history in histories: - print "### Processing history id %d (%s)" % (history.id, history.name) + print ("### Processing history id %d (%s)" % (history.id, history.name)).encode('utf-8') for dataset_assoc in history.datasets: _purge_dataset_instance( dataset_assoc, app, remove_from_disk, info_only = info_only ) #mark a DatasetInstance as deleted, clear associated files, and mark the Dataset as deleted if it is deletable if not info_only: