fabric8-analytics / fabric8-analytics-license-analysis

License Analysis
GNU General Public License v3.0
6 stars 25 forks source link

Python 2-related code in the rest-api.py #141

Closed tisnik closed 5 years ago

tisnik commented 5 years ago

As we moved production environment to Python 3, I think that the following code is no longer relevant:

try:
    from importlib import reload
except ImportError:
    from imp import reload

# Python2.x: Make default encoding as UTF-8
if sys.version_info.major == 2:
    reload(sys)
    sys.setdefaultencoding('UTF8')
sunilk747 commented 5 years ago

This PR takes care of this issue - https://github.com/fabric8-analytics/fabric8-analytics-license-analysis/pull/142.