commit | 737fb89dd15e4db6ef30d25963e774ae09cc49dc | [log] [tgz] |
---|---|---|
author | Andrew Svetlov <andrew.svetlov@gmail.com> | Tue Dec 18 21:14:22 2012 +0200 |
committer | Andrew Svetlov <andrew.svetlov@gmail.com> | Tue Dec 18 21:14:22 2012 +0200 |
tree | 422450a087195dbb9e33c7d73d96fd2f1a5f1fcd | |
parent | 4001e96179543cf056613e65dcedc63716c6bc21 [diff] [blame] |
Issue #16714: use 'raise' exceptions, don't 'throw'. Patch by Serhiy Storchaka.
diff --git a/Lib/runpy.py b/Lib/runpy.py index 7cb4668..a14a62e 100644 --- a/Lib/runpy.py +++ b/Lib/runpy.py
@@ -211,7 +211,7 @@ pass else: # The following check looks a bit odd. The trick is that - # NullImporter throws ImportError if the supplied path is a + # NullImporter raises ImportError if the supplied path is a # *valid* directory entry (and hence able to be handled # by the standard import machinery) try: