projects
/
update-copyright.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Update exception handling to use `except X as Y` syntax.
[update-copyright.git]
/
update_copyright
/
vcs
/
utils.py
diff --git
a/update_copyright/vcs/utils.py
b/update_copyright/vcs/utils.py
index 40406d64ad8af4e9d75a6276c61f497b4af3de9e..bafc1da62af7b5cb58d905e44d4aa5405ca9db8a 100644
(file)
--- a/
update_copyright/vcs/utils.py
+++ b/
update_copyright/vcs/utils.py
@@
-51,7
+51,7
@@
def invoke(args, stdin=None, stdout=_subprocess.PIPE, stderr=_subprocess.PIPE,
q = _subprocess.Popen(args, stdin=_subprocess.PIPE,
stdout=stdout, stderr=stderr, shell=True,
cwd=cwd)
- except OSError
,
e:
+ except OSError
as
e:
raise ValueError([args, e])
stdout,stderr = q.communicate(input=stdin)
status = q.wait()