mirror of
https://github.com/catchorg/Catch2.git
synced 2025-05-25 05:59:24 +00:00
Fix python scripts for python 3 (print now a function rather than a keyword)
This commit is contained in:
parent
91ea20c4cc
commit
77c9edfcdb
3 changed files with 20 additions and 14 deletions
|
@ -1,3 +1,5 @@
|
|||
from __future__ import print_function
|
||||
|
||||
import os
|
||||
import sys
|
||||
import shutil
|
||||
|
@ -18,12 +20,12 @@ def approveFile( approvedFile, unapprovedFile ):
|
|||
if os.path.exists( approvedFile ):
|
||||
os.remove( approvedFile )
|
||||
os.rename( unapprovedFile, approvedFile )
|
||||
print "approved " + justFilename
|
||||
print( "approved " + justFilename )
|
||||
else:
|
||||
print "approval file " + justFilename + " does not exist"
|
||||
print( "approval file " + justFilename + " does not exist" )
|
||||
|
||||
if len(files) > 0:
|
||||
for unapprovedFile in files:
|
||||
approveFile( unapprovedFile.replace( "unapproved.txt", "approved.txt" ), unapprovedFile )
|
||||
else:
|
||||
print "no files to approve"
|
||||
print( "no files to approve" )
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue