diff --git a/Doc/library/subprocess.rst b/Doc/library/subprocess.rst index 27bc5742f6c..c7a60b6916d 100644 --- a/Doc/library/subprocess.rst +++ b/Doc/library/subprocess.rst @@ -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