Fixed an TypeError "super(type, obj): obj must be an instance or subtype of type" when device monitor is used with a custom dev-platform filter // Resolve #3431

This commit is contained in:
Ivan Kravets
2020-03-20 13:56:30 +02:00
parent d32312e738
commit 658b3df123
2 changed files with 3 additions and 2 deletions

View File

@ -9,8 +9,9 @@ PlatformIO Core 4
4.3.1 (2020-??-??) 4.3.1 (2020-??-??)
~~~~~~~~~~~~~~~~~~ ~~~~~~~~~~~~~~~~~~
* Fixed an error "SyntaxError: 'return' with argument inside generator" for PIO Unified Debugger when Python 2.7 is used * Fixed a SyntaxError "'return' with argument inside generator" for PIO Unified Debugger when Python 2.7 is used
* Fixed an issue when ``lib_archive = no`` was not honored in `"platformio.ini" <https://docs.platformio.org/page/projectconf.html>`__ * Fixed an issue when ``lib_archive = no`` was not honored in `"platformio.ini" <https://docs.platformio.org/page/projectconf.html>`__
* Fixed an TypeError "super(type, obj): obj must be an instance or subtype of type" when device monitor is used with a custom dev-platform filter (`issue #3431 <https://github.com/platformio/platformio-core/issues/3431>`_)
4.3.0 (2020-03-19) 4.3.0 (2020-03-19)
~~~~~~~~~~~~~~~~~~ ~~~~~~~~~~~~~~~~~~

View File

@ -20,7 +20,7 @@ from platformio.project.config import ProjectConfig
class DeviceMonitorFilter(miniterm.Transform): class DeviceMonitorFilter(miniterm.Transform):
def __init__(self, project_dir=None, environment=None): def __init__(self, project_dir=None, environment=None):
""" Called by PlatformIO to pass context """ """ Called by PlatformIO to pass context """
super(DeviceMonitorFilter, self).__init__() miniterm.Transform.__init__(self)
self.project_dir = project_dir self.project_dir = project_dir
self.environment = environment self.environment = environment