gdraheim / zziplib

The ZZIPlib provides read access on ZIP-archives and unpacked data. It features an additional simplified API following the standard Posix API for file access
Other
62 stars 50 forks source link

docs/makedocs.py is not compatible with python3 #47

Closed mojca closed 4 years ago

mojca commented 6 years ago

Python 2.7 has less than two years to live. The print statements in makedocs.py are not compatible with python 3 yet, I assume the conversion should be pretty straightforward.

gdraheim commented 6 years ago

Actually, one can use from __future__ import print_function to ensure compatibility.

mojca commented 6 years ago

I usually don't even do that, I just make sure that I provide a single argument, as in

print("something " + foo)
# or
print("something {}".format(foo))

instead of

print("something", foo)

Then you don't even need to import print_function, it just works.

gdraheim commented 6 years ago

Additionally there was a need to convert ET.tostring() to a real str() in python3.

done.

gdraheim commented 4 years ago

All parts are tested with python3 latetely.