jjgomera / iapws

python libray for IAPWS standard calculation of water and steam properties
GNU General Public License v3.0
170 stars 64 forks source link

Backwards compatibility with Python 2 #11

Closed cbrachem closed 9 years ago

cbrachem commented 9 years ago

Currently, one can only install this package using Python 3, as Python 2's open() function doesn' have an encoding parameter. This can be solved by using io.open, which is Python 3's new open function. It's available since Python 2.6. It's implemented in Python in 2.6 and 3.0, which makes it kinda slow, but that shouldn't be a problem in this case.

jjgomera commented 9 years ago

Thanks!!