diff options
| author | Berker Peksag <berker.peksag@gmail.com> | 2016-09-26 20:07:38 (GMT) |
|---|---|---|
| committer | Berker Peksag <berker.peksag@gmail.com> | 2016-09-26 20:07:38 (GMT) |
| commit | 11179b2ed7e2d6a5f790fa3b449a1e57473455e7 (patch) | |
| tree | ce6e7ac3ef903e8c65fbe20de4eff8524627c784 | |
| parent | 97932e4c4f3eeab12889fe45c935e2e6b91ac390 (diff) | |
| parent | 8b6b50814e953abca74a1b7e03b56fa34d0183bd (diff) | |
| download | cpython-11179b2ed7e2d6a5f790fa3b449a1e57473455e7.zip cpython-11179b2ed7e2d6a5f790fa3b449a1e57473455e7.tar.gz cpython-11179b2ed7e2d6a5f790fa3b449a1e57473455e7.tar.bz2 | |
Issue #18893: Merge from 3.5
| -rw-r--r-- | Lib/ctypes/macholib/dyld.py | 5 | ||||
| -rw-r--r-- | Misc/NEWS | 3 |
2 files changed, 6 insertions, 2 deletions
diff --git a/Lib/ctypes/macholib/dyld.py b/Lib/ctypes/macholib/dyld.py index dc7052e..c158e67 100644 --- a/Lib/ctypes/macholib/dyld.py +++ b/Lib/ctypes/macholib/dyld.py @@ -135,10 +135,11 @@ def framework_find(fn, executable_path=None, env=None): Python.framework Python.framework/Versions/Current """ + error = None try: return dyld_find(fn, executable_path=executable_path, env=env) except ValueError as e: - pass + error = e fmwk_index = fn.rfind('.framework') if fmwk_index == -1: fmwk_index = len(fn) @@ -147,7 +148,7 @@ def framework_find(fn, executable_path=None, env=None): try: return dyld_find(fn, executable_path=executable_path, env=env) except ValueError: - raise e + raise error def test_dyld_find(): env = {} @@ -41,6 +41,9 @@ Core and Builtins Library ------- +- Issue #18893: Fix invalid exception handling in Lib/ctypes/macholib/dyld.py. + Patch by Madison May. + - Issue #27611: Fixed support of default root window in the tkinter.tix module. Added the master parameter in the DisplayStyle constructor. |
