forked from platformio/platformio-core
Fixed an error "SyntaxError: 'return' with argument inside generator" for PIO Unified Debugger when Python 2.7 is used
This commit is contained in:
@ -6,6 +6,11 @@ Release Notes
|
|||||||
PlatformIO Core 4
|
PlatformIO Core 4
|
||||||
-----------------
|
-----------------
|
||||||
|
|
||||||
|
4.3.1 (2020-??-??)
|
||||||
|
~~~~~~~~~~~~~~~~~~
|
||||||
|
|
||||||
|
* Fixed a "SyntaxError: 'return' with argument inside generator" for PIO Unified Debugger when Python 2.7 is used
|
||||||
|
|
||||||
4.3.0 (2020-03-19)
|
4.3.0 (2020-03-19)
|
||||||
~~~~~~~~~~~~~~~~~~
|
~~~~~~~~~~~~~~~~~~
|
||||||
|
|
||||||
|
@ -42,11 +42,11 @@ class DebugServer(BaseProcess):
|
|||||||
systype = util.get_systype()
|
systype = util.get_systype()
|
||||||
server = self.debug_options.get("server")
|
server = self.debug_options.get("server")
|
||||||
if not server:
|
if not server:
|
||||||
return None
|
defer.returnValue(None)
|
||||||
server = self.apply_patterns(server, patterns)
|
server = self.apply_patterns(server, patterns)
|
||||||
server_executable = server["executable"]
|
server_executable = server["executable"]
|
||||||
if not server_executable:
|
if not server_executable:
|
||||||
return None
|
defer.returnValue(None)
|
||||||
if server["cwd"]:
|
if server["cwd"]:
|
||||||
server_executable = join(server["cwd"], server_executable)
|
server_executable = join(server["cwd"], server_executable)
|
||||||
if (
|
if (
|
||||||
@ -83,7 +83,7 @@ class DebugServer(BaseProcess):
|
|||||||
)
|
)
|
||||||
self._debug_port = '| "%s" %s' % (server_executable, str_args)
|
self._debug_port = '| "%s" %s' % (server_executable, str_args)
|
||||||
self._debug_port = fs.to_unix_path(self._debug_port)
|
self._debug_port = fs.to_unix_path(self._debug_port)
|
||||||
return self._debug_port
|
defer.returnValue(self._debug_port)
|
||||||
|
|
||||||
env = os.environ.copy()
|
env = os.environ.copy()
|
||||||
# prepend server "lib" folder to LD path
|
# prepend server "lib" folder to LD path
|
||||||
@ -120,7 +120,7 @@ class DebugServer(BaseProcess):
|
|||||||
|
|
||||||
yield self._wait_until_ready()
|
yield self._wait_until_ready()
|
||||||
|
|
||||||
return self._debug_port
|
defer.returnValue(self._debug_port)
|
||||||
|
|
||||||
@defer.inlineCallbacks
|
@defer.inlineCallbacks
|
||||||
def _wait_until_ready(self):
|
def _wait_until_ready(self):
|
||||||
|
Reference in New Issue
Block a user