Fri, 30 Sep 2016 19:21:22 +0200
Fixed an interesting issue showing up when the code contains an invalid future statement.
(grafted from 79b3922094ba69ebfbc2c7aab76c7933f3ce452c)
DebugClients/Python3/DebugBase.py | file | annotate | diff | comparison | revisions | |
DebugClients/Python3/DebugClientBase.py | file | annotate | diff | comparison | revisions |
--- a/DebugClients/Python3/DebugBase.py Sat Sep 24 18:00:30 2016 +0200 +++ b/DebugClients/Python3/DebugBase.py Fri Sep 30 19:21:22 2016 +0200 @@ -731,10 +731,13 @@ if exctype in [SyntaxError, IndentationError]: try: + printerr("1") message = str(excval) filename = excval.filename linenr = excval.lineno charnr = excval.offset + if charno is None: + charno = 0 except (AttributeError, ValueError): exclist = [] realSyntaxError = True
--- a/DebugClients/Python3/DebugClientBase.py Sat Sep 24 18:00:30 2016 +0200 +++ b/DebugClients/Python3/DebugClientBase.py Fri Sep 30 19:21:22 2016 +0200 @@ -374,6 +374,8 @@ filename = excval.filename linenr = excval.lineno charnr = excval.offset + if charno is None: + charno = 0 except (AttributeError, ValueError): exclist = [] else: