From efb305173ea9000b2ddf1578d89d8cbd1318b37b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=2E=20Fernando=20S=C3=A1nchez?= Date: Wed, 1 Mar 2017 18:28:20 +0100 Subject: [PATCH] Removed future from __init__ Since __init__ is imported by setup.py, future may not be installed yet. Other options would be: * Read VERSION -> and that code has to be duplicated in setup.py and senpy (to avoid the import, once again) * Eval version.py * Do without versioning :) --- senpy/__init__.py | 3 --- senpy/extensions.py | 2 ++ 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/senpy/__init__.py b/senpy/__init__.py index 5c80f53..4c757cc 100644 --- a/senpy/__init__.py +++ b/senpy/__init__.py @@ -17,9 +17,6 @@ """ Sentiment analysis server in Python """ -from future import standard_library -standard_library.install_aliases() - from .version import __version__ import logging diff --git a/senpy/extensions.py b/senpy/extensions.py index 5797c44..c691ec8 100644 --- a/senpy/extensions.py +++ b/senpy/extensions.py @@ -2,6 +2,8 @@ Main class for Senpy. It orchestrates plugin (de)activation and analysis. """ +from future import standard_library +standard_library.install_aliases() from .plugins import SentimentPlugin, SenpyPlugin from .models import Error, Entry, Results