Opened 8 years ago
Closed 8 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)
Change History (3)
by , 8 years ago
Attachment: | vboxxpcom.py.diff added |
---|
comment:1 by , 8 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 , 8 years ago
Resolution: | → fixed |
---|---|
Status: | new → closed |
Fix will be part of the next 5.1.x maintenance release.
Patch which solves the problem