strongswan / swidGenerator

Application which generates SWID-Tags from Linux package managers like dpkg, rpm or pacman.
MIT License
16 stars 11 forks source link

Python3: README.rst should be openned as utf-8. #35

Closed isimluk closed 10 years ago

isimluk commented 10 years ago

Addressing: $ /usr/bin/python3 setup.py install Traceback (most recent call last): File "setup.py", line 7, in readme = open('README.rst').read() File "/usr/lib64/python3.3/encodings/ascii.py", line 26, in decode return codecs.ascii_decode(input, self.errors)[0] UnicodeDecodeError: 'ascii' codec can't decode byte 0xc3 in position 8545: ordinal not in range(128)

dbrgn commented 10 years ago

Thanks for the fix. This only works on py33 and py34 though, as in Python 2 there's no encoding kwarg.

I fixed it by using the io import. Thanks for bringing up this issue though. I added you to CONTRIBUTORS.rst.