VirtualBox

Opened 7 years ago

Closed 7 years ago

#16899 closed defect (fixed)

Wrong usage of isdigit in vboxxpcom.py

Reported by: Andreas_H Owned by:
Component: other Version: VirtualBox 5.1.22
Keywords: python Cc:
Guest type: other Host type: other

Description

The file vboxxpcom.py, used for initializing the python bindings, contains a small error which only takes effect when using python 3.

It calls "isdigit(sCandidate[-1:])" which should be "sCandidate[-1:].isdigit()"

As a result, importing vboxapi fails with python 3.

Attachments (1)

vboxxpcom.py.diff (496 bytes ) - added by Andreas_H 7 years ago.
Patch which solves the problem

Download all attachments as: .zip

Change History (3)

by Andreas_H, 7 years ago

Attachment: vboxxpcom.py.diff added

Patch which solves the problem

comment:1 by Klaus Espenlaub, 7 years ago

Normally I'd need to ask for a "provided under MIT" statement with the diff, but in this case this is too much effort. Object if this assumption that you meant to provide the patch under MIT isn't true.

comment:2 by Frank Mehnert, 7 years ago

Resolution: fixed
Status: newclosed

Fix will be part of the next 5.1.x maintenance release.

Note: See TracTickets for help on using tickets.

© 2023 Oracle
ContactPrivacy policyTerms of Use