commit | 1625d88709abb45d392d1f48b1803ab5dde3bd77 | [log] [tgz] |
---|---|---|
author | Andrew Svetlov <andrew.svetlov@gmail.com> | Tue Oct 30 21:56:43 2012 +0200 |
committer | Andrew Svetlov <andrew.svetlov@gmail.com> | Tue Oct 30 21:56:43 2012 +0200 |
tree | a7a1fb02a5660a395623d49da10037d070bc1c79 | |
parent | 5c89c19eae988245a826dc1f750c55ebb5f329bc [diff] [blame] |
Issue #16341: convert examples to use except ... as ... syntax.
diff --git a/Doc/includes/email-unpack.py b/Doc/includes/email-unpack.py index 8f99ded..a8f712d 100644 --- a/Doc/includes/email-unpack.py +++ b/Doc/includes/email-unpack.py
@@ -35,7 +35,7 @@ try: os.mkdir(opts.directory) - except OSError, e: + except OSError as e: # Ignore directory exists error if e.errno != errno.EEXIST: raise