Salome HOME
projects
/
modules
/
kernel.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (from parent 1:
7f19df7
)
Issue 0019916: avoid deprecation warning
author
vsr
<vsr@opencascade.com>
Mon, 7 Jul 2008 10:31:37 +0000
(10:31 +0000)
committer
vsr
<vsr@opencascade.com>
Mon, 7 Jul 2008 10:31:37 +0000
(10:31 +0000)
bin/salome_utilities.py
patch
|
blob
|
history
diff --git
a/bin/salome_utilities.py
b/bin/salome_utilities.py
index e22215fc1658b7664272cbe992d276d96db30ec2..b4349cd203083bdfb1fc4bc8abdf02d5c3784ea4 100644
(file)
--- a/
bin/salome_utilities.py
+++ b/
bin/salome_utilities.py
@@
-60,7
+60,7
@@
def _try_bool( arg ):
if v in [ "yes", "y", "true" ]: return True
elif v in [ "no", "n", "false" ]: return False
pass
if v in [ "yes", "y", "true" ]: return True
elif v in [ "no", "n", "false" ]: return False
pass
- raise
"Not boolean value"
+ raise
Exception("Not boolean value")
# ---
# ---
@@
-323,7
+323,7
@@
def generateFileName( dir, prefix = None, suffix = None, extension = None,
pass
# raise an exception if file name is empty
if not filename:
pass
# raise an exception if file name is empty
if not filename:
- raise
"Empty file name"
+ raise
Exception("Empty file name")
#
if extension is not None and extension.startswith("."): extension = extension[1:]
#
#
if extension is not None and extension.startswith("."): extension = extension[1:]
#