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)
This commit is contained in:
parent
8616bc13cb
commit
65c1415d4b
1 changed files with 4 additions and 4 deletions
|
|
@ -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(
|
||||
|
|
|
|||
Loading…
Reference in a new issue