summaryrefslogtreecommitdiff
path: root/src/script
diff options
context:
space:
mode:
authorCraig Rodrigues <rodrigc@FreeBSD.org>2017-03-11 04:21:26 -0800
committerCraig Rodrigues <rodrigc@FreeBSD.org>2017-03-11 04:21:26 -0800
commit48adad3d072376c695983140125d9b278193ca65 (patch)
treef6d714514dcf40b552eff627c74b10a0e8357332 /src/script
parent23e770825d15259d5caa0a8db163decb0f30fd9b (diff)
downloadscons-48adad3d072376c695983140125d9b278193ca65.tar.gz
Use print() function. Fixes py2/3.
Diffstat (limited to 'src/script')
-rw-r--r--src/script/scons-configure-cache.py8
1 files changed, 5 insertions, 3 deletions
diff --git a/src/script/scons-configure-cache.py b/src/script/scons-configure-cache.py
index 2648acda..369f8179 100644
--- a/src/script/scons-configure-cache.py
+++ b/src/script/scons-configure-cache.py
@@ -23,6 +23,8 @@
# OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
# WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
+from __future__ import print_function
+
__revision__ = "__FILE__ __REVISION__ __DATE__ __DEVELOPER__"
__version__ = "__VERSION__"
@@ -41,14 +43,14 @@ import json
import os
def rearrange_cache_entries(current_prefix_len, new_prefix_len):
- print 'Changing prefix length from', current_prefix_len, 'to', new_prefix_len
+ print('Changing prefix length from', current_prefix_len, 'to', new_prefix_len)
dirs = set()
old_dirs = set()
for file in glob.iglob(os.path.join('*', '*')):
name = os.path.basename(file)
dir = name[:current_prefix_len].upper()
if dir not in old_dirs:
- print 'Migrating', dir
+ print('Migrating', dir)
old_dirs.add(dir)
dir = name[:new_prefix_len].upper()
if dir not in dirs:
@@ -136,4 +138,4 @@ for key in args:
# and write the updated config file
with open('config', 'w') as conf:
- json.dump(config, conf) \ No newline at end of file
+ json.dump(config, conf)