From c6163b3d3408f41f8f2f8d56cfc7e295b2f14627 Mon Sep 17 00:00:00 2001 From: Julio Biason Date: Mon, 25 May 2015 19:12:40 -0300 Subject: [PATCH] Python 3 compliance --- break.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/break.py b/break.py index 49299fb..902f268 100644 --- a/break.py +++ b/break.py @@ -19,9 +19,9 @@ for filename in os.listdir('.'): # date=mod_date) directory = os.path.join('{year:0>4}'.format(year=mod_date.year), '{month:0>2}'.format(month=mod_date.month)) - print '{filename} will be moved to {directory}'.format( + print ('{filename} will be moved to {directory}'.format( filename=filename, - directory=directory) + directory=directory)) try: os.makedirs(directory)