Salome HOME
projects
/
modules
/
homard.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Porting to Python 3
[modules/homard.git]
/
doc
/
files
/
tutorial_util.py
diff --git
a/doc/files/tutorial_util.py
b/doc/files/tutorial_util.py
index 5960f12b279ac899f60a6e3888520f8e26c17271..34fb19ae75ce891856a3f4109538268ee92a50c3 100755
(executable)
--- a/
doc/files/tutorial_util.py
+++ b/
doc/files/tutorial_util.py
@@
-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"