X-Git-Url: http://git.salome-platform.org/gitweb/?a=blobdiff_plain;f=v8_work%2Fmedcoup7to8.py;h=61efbe0690e44ad84725df0aa7398d869af10396;hb=dcc261ea8b9015285a05b5f7bc2960d883815c9a;hp=91e7341141cc717ca585cd5c735e595b0723569f;hpb=3b1d77efdd048ef4aad858e96138bf79318119df;p=tools%2Fmedcoupling.git diff --git a/v8_work/medcoup7to8.py b/v8_work/medcoup7to8.py index 91e734114..61efbe069 100755 --- a/v8_work/medcoup7to8.py +++ b/v8_work/medcoup7to8.py @@ -1,6 +1,6 @@ #!/usr/bin/env python # -*- coding: iso-8859-1 -*- -# Copyright (C) 2007-2015 CEA/DEN, EDF R&D +# Copyright (C) 2007-2020 CEA/DEN, EDF R&D # # This library is free software; you can redistribute it and/or # modify it under the terms of the GNU Lesser General Public @@ -108,7 +108,7 @@ def convert(root_dir, ext, quiet): # Skip this script! if fileName == __myName: if not quiet: - print "!!! Skipping script %s !!!" % __myName + print("!!! Skipping script %s !!!" % __myName) continue ok = False if fileName[-28:] != "MEDCouplingNatureOfFieldEnum": @@ -119,7 +119,7 @@ def convert(root_dir, ext, quiet): else: ok = True if not ok: continue # skip file - if not quiet: print "Handling %s ..." % fileName + if not quiet: print("Handling %s ..." % fileName) for line in fileinput.input(fileName, inplace=1, backup='.bak'): for before, after in REPLACEMENTS: line = re.sub("(\W|^)(%s)(\W|$)" % before, r"\1%s\3" % after, line.rstrip('\r\n'))