From b24506c2886dfc8b8f10092bbae6f3d52970e440 Mon Sep 17 00:00:00 2001 From: Gerald NICOLAS Date: Thu, 5 Oct 2017 17:19:31 +0200 Subject: [PATCH] passage en python 3 --- doc/files/tutorial_util.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/doc/files/tutorial_util.py b/doc/files/tutorial_util.py index 5960f12b..8a22233f 100755 --- a/doc/files/tutorial_util.py +++ b/doc/files/tutorial_util.py @@ -19,9 +19,9 @@ # """ Python script for HOMARD -Copyright EDF-R&D 2014 +Copyright EDF-R&D 2014, 2017 """ -__revision__ = "V1.3" +__revision__ = "V2.01" import os import sys @@ -110,7 +110,7 @@ num_tuto: number of the tutorial Copyright EDF-R&D 2014 """ # - if os.environ.has_key("LOGNAME") : + if "LOGNAME" in os.environ : user = os.environ ["LOGNAME"] else : user = "anonymous" -- 2.39.2