Skip to content

legacy: Fix DeviceHandle finalizer checking for the wrong attribute#502

Merged
jonasmalacofilho merged 1 commit intopyusb:masterfrom
puddly:puddly/fix-legacy-finalizer
Mar 11, 2024
Merged

legacy: Fix DeviceHandle finalizer checking for the wrong attribute#502
jonasmalacofilho merged 1 commit intopyusb:masterfrom
puddly:puddly/fix-legacy-finalizer

Conversation

@puddly
Copy link
Copy Markdown
Contributor

@puddly puddly commented Feb 29, 2024

Introduced in e658484. I believe this is a typo.

hasattr(self, 'self.dev') will never evaluate to True so _finalize_object will never actually run.

Copy link
Copy Markdown
Member

@jonasmalacofilho jonasmalacofilho left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks!

@jonasmalacofilho jonasmalacofilho merged commit 92da7b3 into pyusb:master Mar 11, 2024
@mcuee mcuee added the misc typo, whitespace, etc label Mar 31, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

misc typo, whitespace, etc

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants