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):
|
def run(self):
|
||||||
# build folder
|
# build folder
|
||||||
if os.path.exists(self.__class__.build_folder):
|
if os.path.exists(self.__class__.build_folder):
|
||||||
print "Deleting build directory"
|
print("Deleting build directory")
|
||||||
shutil.rmtree(self.__class__.build_folder)
|
shutil.rmtree(self.__class__.build_folder)
|
||||||
|
|
||||||
# eggs
|
# eggs
|
||||||
for egg in self.__class__.eggs:
|
for egg in self.__class__.eggs:
|
||||||
globbed_eggs = glob.glob(egg)
|
globbed_eggs = glob.glob(egg)
|
||||||
for globbed_egg in globbed_eggs:
|
for globbed_egg in globbed_eggs:
|
||||||
print "Deleting %s directory" % globbed_egg
|
print("Deleting %s directory" % globbed_egg)
|
||||||
shutil.rmtree(globbed_egg)
|
shutil.rmtree(globbed_egg)
|
||||||
|
|
||||||
# pyc files
|
# pyc files
|
||||||
@@ -94,11 +94,11 @@ class CleanCommand(Command):
|
|||||||
return
|
return
|
||||||
if len(os.listdir(path)) == 0:
|
if len(os.listdir(path)) == 0:
|
||||||
shutil.rmtree(path)
|
shutil.rmtree(path)
|
||||||
print "Deleted %s since it was empty" % path
|
print("Deleted %s since it was empty" % path)
|
||||||
|
|
||||||
def delete_file(path):
|
def delete_file(path):
|
||||||
os.remove(path)
|
os.remove(path)
|
||||||
print "Deleted %s" % path
|
print("Deleted %s" % path)
|
||||||
|
|
||||||
import fnmatch
|
import fnmatch
|
||||||
recursively_handle_files(
|
recursively_handle_files(
|
||||||
|
|||||||
Reference in new issue
Block a user