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.
This commit is contained in:
1 parent
e79703ba6e
commit
b60123945a
1 file changed
+4
-4
@@ -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(
|
||||
|
||||
Reference in new issue
Block a user