Commit e793f44a authored by Ezio Melotti's avatar Ezio Melotti

#16332: use "except OSError as e" in subprocess docs. Patch by Berker Peksag.

parent 8221f865
......@@ -750,7 +750,7 @@ A more realistic example would look like this::
print >>sys.stderr, "Child was terminated by signal", -retcode
else:
print >>sys.stderr, "Child returned", retcode
except OSError, e:
except OSError as e:
print >>sys.stderr, "Execution failed:", e
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment