X-Git-Url: http://git.salome-platform.org/gitweb/?a=blobdiff_plain;f=v8_work%2Fmedcoup7to8.py;h=f3044a3b6700d0b1614d850ea3a8fd5170f3390f;hb=1effdfc986d65aad75213ed630147f44e795795d;hp=91e7341141cc717ca585cd5c735e595b0723569f;hpb=bd238ae917aa20ba3fe2f7569883d619b7e4f7a9;p=tools%2Fmedcoupling.git diff --git a/v8_work/medcoup7to8.py b/v8_work/medcoup7to8.py index 91e734114..f3044a3b6 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-2016 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'))