pytroll / pytroll-schedule

Reception scheduling of polar weather satellites
http://pytroll-schedule.readthedocs.org/
GNU General Public License v3.0
9 stars 12 forks source link

Support Python 3 #11

Closed pnuu closed 6 years ago

pnuu commented 6 years ago

This PR adds support to Python 3 by replacing print statements with print function and adding try/except cases for imports.

coveralls commented 6 years ago

Coverage Status

Coverage decreased (-0.1%) to 36.071% when pulling d8b17a5706d2aefbf13e3f0e3885d3ce8332ba85 on feature-python3-support into a6015b4519302a354f6b8a6781a308bd4c5c8730 on master.

pnuu commented 6 years ago

It seems that most of the fixes were already done in another branch that got merged after I started with my modifications. There are some autopep8 updates, and different ordering in the imports (by default try the Python 3, fallback on Python 2 version).

pnuu commented 6 years ago

There are incorrect syntax in current master and develop in satpass.py except statements, which are fixed here.

adybbroe commented 6 years ago

@pnuu Can we merge this now? Or is there more to it?

pnuu commented 6 years ago

The features I have used (via pytroll-collectors/gatherer.py) work, and so should everything else. I don't have anything else to commit to this :-)