Try to open the source file if an exceptions in a cython pyd occurred maintenance

Fri, 06 Jul 2018 20:31:07 +0200

author
T.Rzepka <Tobias.Rzepka@gmail.com>
date
Fri, 06 Jul 2018 20:31:07 +0200
branch
maintenance
changeset 6407
cee2958c2f97
parent 6406
40c49ca930b3
child 6408
8aa2d6b96303

Try to open the source file if an exceptions in a cython pyd occurred
(grafted from 2763348bf9a69f1a93ca45cafa934018854cad2a)

DebugClients/Python/DebugBase.py file | annotate | diff | comparison | revisions
changelog file | annotate | diff | comparison | revisions
--- a/DebugClients/Python/DebugBase.py	Fri Jul 06 20:30:36 2018 +0200
+++ b/DebugClients/Python/DebugBase.py	Fri Jul 06 20:31:07 2018 +0200
@@ -587,7 +587,7 @@
                 return frame.f_code.co_filename
             
             absFilename = os.path.abspath(fn)
-            if absFilename.endswith(('.pyc', '.pyo')):
+            if absFilename.endswith(('.pyc', '.pyo', '.pyd')):
                 fixedName = absFilename[:-1]
                 if not os.path.exists(fixedName):
                     fixedName = absFilename
--- a/changelog	Fri Jul 06 20:30:36 2018 +0200
+++ b/changelog	Fri Jul 06 20:31:07 2018 +0200
@@ -6,6 +6,7 @@
   -- upgraded pyflakes to version 2.0.0
 - Debugger
   -- Support of breakpoint() builtin of Python 3.7
+  -- Try to open the source file if an exceptions in a cython pyd occurred
 - Git Interface
   -- added capability to change the URL and/or user credentials for a
      remote repository

eric ide

mercurial