From 65c1415d4b880919a9b399a36b686ae98642fcb4 Mon Sep 17 00:00:00 2001 From: MirceaDan Date: Thu, 9 Jun 2016 09:55:50 +0200 Subject: [PATCH] added () to print statements for python 3.x compatibility some print already have () some did not , for consistency and compatibility i added () to all prints. (cherry picked from commit b601239) --- src/octoprint_setuptools/__init__.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/octoprint_setuptools/__init__.py b/src/octoprint_setuptools/__init__.py index f683e2e3..6e840add 100644 --- a/src/octoprint_setuptools/__init__.py +++ b/src/octoprint_setuptools/__init__.py @@ -78,14 +78,14 @@ class CleanCommand(Command): def run(self): # build folder if os.path.exists(self.__class__.build_folder): - print "Deleting build directory" + print("Deleting build directory") shutil.rmtree(self.__class__.build_folder) # eggs for egg in self.__class__.eggs: globbed_eggs = glob.glob(egg) for globbed_egg in globbed_eggs: - print "Deleting %s directory" % globbed_egg + print("Deleting %s directory" % globbed_egg) shutil.rmtree(globbed_egg) # pyc files @@ -94,11 +94,11 @@ class CleanCommand(Command): return if len(os.listdir(path)) == 0: shutil.rmtree(path) - print "Deleted %s since it was empty" % path + print("Deleted %s since it was empty" % path) def delete_file(path): os.remove(path) - print "Deleted %s" % path + print("Deleted %s" % path) import fnmatch recursively_handle_files(