[SeaBIOS] [PATCH] Make scripts compatible with Python 2 and 3
Johannes Krampf
johannes.krampf at googlemail.com
Sun Jan 12 11:51:01 CET 2014
Hello SeaBIOS developers,
I've created a new patch which allows me to build SeaBIOS successfully
with both Python 2 and Python 3. (Tested with qemu)
Aside from print statements/functions, str/bytes and integer division
for Python 2/3 compatibility, I also did some small changes (removing
semicolons) to the acpi_* files to reduce the noise from pylint output.
I was careful not to break the code, but I could not test the readserial
script lacking the necessary hardware and would appreciate if someone
else could give it a try.
All of my changes should work with Python 2.4 and newer (version in RHEL
5, the oldest supported version). If you require compatibility with
older Python versions, please tell me and I will revise the patch.
- Johannes
P.S. Please CC me in answers as I'm not subscribed to the list.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: python23compat.patch
Type: text/x-patch
Size: 45262 bytes
Desc: not available
URL: <http://www.seabios.org/pipermail/seabios/attachments/20140112/3baed0f0/attachment-0001.patch>
More information about the SeaBIOS
mailing list