klen / python-scss

Python scss parser.
http://packages.python.org/scss/
GNU Lesser General Public License v3.0
67 stars 12 forks source link

Compatibility with Python 3 #33

Closed bm371613 closed 10 years ago

bm371613 commented 10 years ago

I needed to use python-scss in Python 3 project, so I decided to make it compatible with both Python2 and Python3.

I created compat.py to keep in one place as much of the compatibility workarounds as possible.

Unittest results on my py3k branch are the same (with both Python 2.7 and 3.3) as on the original master branch.

Comments and improvements are welcome.

klen commented 10 years ago

Nice work, I'll merge the request and make release, but one question. I deprecated the package long time ago (first lines in README), what the reason to use it?

bm371613 commented 10 years ago

Well, I had that package working nicely in Py2 version of my project, and I made it Py3 compatible together with my project. I'll consider moving to pyscss once python-scss proves insufficent.