git://git.onelab.eu
/
nepi.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
applied the except and raise fixers to the master branch to close the gap with py3
[nepi.git]
/
src
/
nepi
/
util
/
environ.py
diff --git
a/src/nepi/util/environ.py
b/src/nepi/util/environ.py
index
32ed19b
..
e67249a
100644
(file)
--- a/
src/nepi/util/environ.py
+++ b/
src/nepi/util/environ.py
@@
-62,7
+62,7
@@
def find_bin(name, extra_path = None):
try:
os.stat(d + "/" + name)
return d + "/" + name
try:
os.stat(d + "/" + name)
return d + "/" + name
- except OSError
,
e:
+ except OSError
as
e:
if e.errno != os.errno.ENOENT:
raise
return None
if e.errno != os.errno.ENOENT:
raise
return None
@@
-88,7
+88,7
@@
def find_bin(name, extra_path = None):
try:
os.stat(d + "/" + name)
return d + "/" + name
try:
os.stat(d + "/" + name)
return d + "/" + name
- except OSError
,
e:
+ except OSError
as
e:
if e.errno != os.errno.ENOENT:
raise
return None
if e.errno != os.errno.ENOENT:
raise
return None