diff options
author | Craig Rodrigues <rodrigc@FreeBSD.org> | 2017-03-11 12:21:26 (GMT) |
---|---|---|
committer | Craig Rodrigues <rodrigc@FreeBSD.org> | 2017-03-11 12:21:26 (GMT) |
commit | 92c24f24619954e214cca853ae12cde2f5159bcb (patch) | |
tree | f6d714514dcf40b552eff627c74b10a0e8357332 /src | |
parent | 29a14c8408a30393ae4f03e361d27770f7619d3f (diff) | |
download | SCons-92c24f24619954e214cca853ae12cde2f5159bcb.zip SCons-92c24f24619954e214cca853ae12cde2f5159bcb.tar.gz SCons-92c24f24619954e214cca853ae12cde2f5159bcb.tar.bz2 |
Use print() function. Fixes py2/3.
Diffstat (limited to 'src')
-rw-r--r-- | src/script/scons-configure-cache.py | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/src/script/scons-configure-cache.py b/src/script/scons-configure-cache.py index 2648acd..369f817 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) |