Kaydet (Commit) e793f44a authored tarafından Ezio Melotti's avatar Ezio Melotti

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

üst 8221f865
...@@ -750,7 +750,7 @@ A more realistic example would look like this:: ...@@ -750,7 +750,7 @@ A more realistic example would look like this::
print >>sys.stderr, "Child was terminated by signal", -retcode print >>sys.stderr, "Child was terminated by signal", -retcode
else: else:
print >>sys.stderr, "Child returned", retcode print >>sys.stderr, "Child returned", retcode
except OSError, e: except OSError as e:
print >>sys.stderr, "Execution failed:", 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