Commit 6913d01
Pietro Albini
Fix wrong traceback in deprecation warnings on Python 3.5.0
Python 3.5.0 has a bug in the `traceback.extract_stack` method, which
returns an extra internal stack frame. This causes some trouble in the
nice deprecation warnings message, because the hint about where to
change things points to a different file (and line number).
This commit adds a special workaround activated only on Python 3.5.0.
Upstream issue: http://bugs.python.org/issue251081 parent 5168cfb commit 6913d01
1 file changed
+6
-0
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
73 | 73 | | |
74 | 74 | | |
75 | 75 | | |
| 76 | + | |
| 77 | + | |
| 78 | + | |
| 79 | + | |
| 80 | + | |
| 81 | + | |
76 | 82 | | |
77 | 83 | | |
78 | 84 | | |
| |||
0 commit comments