superset-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From t...@apache.org
Subject [incubator-superset] branch master updated: remove future imports (#6050)
Date Thu, 11 Oct 2018 16:46:30 GMT
This is an automated email from the ASF dual-hosted git repository.

timi pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/incubator-superset.git


The following commit(s) were added to refs/heads/master by this push:
     new 5c5be82  remove future imports (#6050)
5c5be82 is described below

commit 5c5be825d9c9f7f25f1b3d90ff991f24d1a0c175
Author: timifasubaa <30888507+timifasubaa@users.noreply.github.com>
AuthorDate: Thu Oct 11 09:46:25 2018 -0700

    remove future imports (#6050)
---
 requirements-dev.txt              | 1 -
 superset/cli.py                   | 5 -----
 superset/data/__init__.py         | 5 -----
 superset/utils.py                 | 5 -----
 tests/access_tests.py             | 5 -----
 tests/base_tests.py               | 5 -----
 tests/cache_tests.py              | 5 -----
 tests/celery_tests.py             | 5 -----
 tests/core_tests.py               | 5 -----
 tests/dashboard_tests.py          | 5 -----
 tests/dataframe_test.py           | 5 -----
 tests/datasource_tests.py         | 5 -----
 tests/db_engine_specs_test.py     | 5 -----
 tests/dict_import_export_tests.py | 6 ------
 tests/druid_func_tests.py         | 5 -----
 tests/druid_tests.py              | 5 -----
 tests/email_tests.py              | 5 -----
 tests/fixtures/datasource.py      | 5 -----
 tests/form_tests.py               | 5 -----
 tests/import_export_tests.py      | 5 -----
 tests/macro_tests.py              | 5 -----
 tests/model_tests.py              | 5 -----
 tests/security_tests.py           | 5 -----
 tests/sql_parse_tests.py          | 5 -----
 tests/sqllab_tests.py             | 5 -----
 tests/utils.py                    | 5 -----
 tests/utils_tests.py              | 5 -----
 tests/viz_tests.py                | 5 -----
 28 files changed, 137 deletions(-)

diff --git a/requirements-dev.txt b/requirements-dev.txt
index ede63b0..6870be6 100644
--- a/requirements-dev.txt
+++ b/requirements-dev.txt
@@ -1,7 +1,6 @@
 console_log==0.2.10
 flake8-coding==1.3.0
 flake8-commas==2.0.0
-flake8-future-import==0.4.5
 flake8-import-order==0.18
 flake8-quotes==1.0.0
 flake8==3.5.0
diff --git a/superset/cli.py b/superset/cli.py
index 4a34bdc..3322a8a 100755
--- a/superset/cli.py
+++ b/superset/cli.py
@@ -1,11 +1,6 @@
 #!/usr/bin/env python
 # -*- coding: utf-8 -*-
 # pylint: disable=C,R,W
-from __future__ import absolute_import
-from __future__ import division
-from __future__ import print_function
-from __future__ import unicode_literals
-
 from datetime import datetime
 import logging
 from subprocess import Popen
diff --git a/superset/data/__init__.py b/superset/data/__init__.py
index 56af4a6..945efb5 100644
--- a/superset/data/__init__.py
+++ b/superset/data/__init__.py
@@ -1,10 +1,5 @@
 """Loads datasets, dashboards and slices in a new superset instance"""
 # pylint: disable=C,R,W
-from __future__ import absolute_import
-from __future__ import division
-from __future__ import print_function
-from __future__ import unicode_literals
-
 import datetime
 import gzip
 import json
diff --git a/superset/utils.py b/superset/utils.py
index 6362712..aa80209 100644
--- a/superset/utils.py
+++ b/superset/utils.py
@@ -1,11 +1,6 @@
 # -*- coding: utf-8 -*-
 # pylint: disable=C,R,W
 """Utility functions used across Superset"""
-from __future__ import absolute_import
-from __future__ import division
-from __future__ import print_function
-from __future__ import unicode_literals
-
 from builtins import object
 from datetime import date, datetime, time, timedelta
 import decimal
diff --git a/tests/access_tests.py b/tests/access_tests.py
index a669f5d..a9dc27d 100644
--- a/tests/access_tests.py
+++ b/tests/access_tests.py
@@ -1,10 +1,5 @@
 # -*- coding: utf-8 -*-
 """Unit tests for Superset"""
-from __future__ import absolute_import
-from __future__ import division
-from __future__ import print_function
-from __future__ import unicode_literals
-
 import json
 import unittest
 
diff --git a/tests/base_tests.py b/tests/base_tests.py
index f69ab68..990f78d 100644
--- a/tests/base_tests.py
+++ b/tests/base_tests.py
@@ -1,10 +1,5 @@
 # -*- coding: utf-8 -*-
 """Unit tests for Superset"""
-from __future__ import absolute_import
-from __future__ import division
-from __future__ import print_function
-from __future__ import unicode_literals
-
 import json
 import logging
 import os
diff --git a/tests/cache_tests.py b/tests/cache_tests.py
index 27a2c5f..5b4f503 100644
--- a/tests/cache_tests.py
+++ b/tests/cache_tests.py
@@ -1,10 +1,5 @@
 # -*- coding: utf-8 -*-
 """Unit tests for Superset with caching"""
-from __future__ import absolute_import
-from __future__ import division
-from __future__ import print_function
-from __future__ import unicode_literals
-
 import json
 
 from superset import cache, db, utils
diff --git a/tests/celery_tests.py b/tests/celery_tests.py
index 06b1003..935c75b 100644
--- a/tests/celery_tests.py
+++ b/tests/celery_tests.py
@@ -1,10 +1,5 @@
 # -*- coding: utf-8 -*-
 """Unit tests for Superset Celery worker"""
-from __future__ import absolute_import
-from __future__ import division
-from __future__ import print_function
-from __future__ import unicode_literals
-
 import json
 import subprocess
 import time
diff --git a/tests/core_tests.py b/tests/core_tests.py
index d0eeacf..74f790c 100644
--- a/tests/core_tests.py
+++ b/tests/core_tests.py
@@ -1,10 +1,5 @@
 # -*- coding: utf-8 -*-
 """Unit tests for Superset"""
-from __future__ import absolute_import
-from __future__ import division
-from __future__ import print_function
-from __future__ import unicode_literals
-
 import csv
 import datetime
 import doctest
diff --git a/tests/dashboard_tests.py b/tests/dashboard_tests.py
index bc6c61f..b455ef2 100644
--- a/tests/dashboard_tests.py
+++ b/tests/dashboard_tests.py
@@ -1,10 +1,5 @@
 # -*- coding: utf-8 -*-
 """Unit tests for Superset"""
-from __future__ import absolute_import
-from __future__ import division
-from __future__ import print_function
-from __future__ import unicode_literals
-
 import json
 import unittest
 
diff --git a/tests/dataframe_test.py b/tests/dataframe_test.py
index b52b950..2ffd4ce 100644
--- a/tests/dataframe_test.py
+++ b/tests/dataframe_test.py
@@ -1,9 +1,4 @@
 # -*- coding: utf-8 -*-
-from __future__ import absolute_import
-from __future__ import division
-from __future__ import print_function
-from __future__ import unicode_literals
-
 import numpy as np
 
 from superset.dataframe import dedup, SupersetDataFrame
diff --git a/tests/datasource_tests.py b/tests/datasource_tests.py
index 7da7d92..24aa430 100644
--- a/tests/datasource_tests.py
+++ b/tests/datasource_tests.py
@@ -1,10 +1,5 @@
 # -*- coding: utf-8 -*-
 """Unit tests for Superset"""
-from __future__ import absolute_import
-from __future__ import division
-from __future__ import print_function
-from __future__ import unicode_literals
-
 import json
 
 from .base_tests import SupersetTestCase
diff --git a/tests/db_engine_specs_test.py b/tests/db_engine_specs_test.py
index 81709dc..cbcb129 100644
--- a/tests/db_engine_specs_test.py
+++ b/tests/db_engine_specs_test.py
@@ -1,9 +1,4 @@
 # -*- coding: utf-8 -*-
-from __future__ import absolute_import
-from __future__ import division
-from __future__ import print_function
-from __future__ import unicode_literals
-
 import inspect
 
 from six import text_type
diff --git a/tests/dict_import_export_tests.py b/tests/dict_import_export_tests.py
index c96ce63..1f8ea64 100644
--- a/tests/dict_import_export_tests.py
+++ b/tests/dict_import_export_tests.py
@@ -1,10 +1,5 @@
 # -*- coding: utf-8 -*-
 """Unit tests for Superset"""
-from __future__ import absolute_import
-from __future__ import division
-from __future__ import print_function
-from __future__ import unicode_literals
-
 import json
 import unittest
 
@@ -25,7 +20,6 @@ ID_PREFIX = 20000
 
 class DictImportExportTests(SupersetTestCase):
     """Testing export import functionality for dashboards"""
-
     def __init__(self, *args, **kwargs):
         super(DictImportExportTests, self).__init__(*args, **kwargs)
 
diff --git a/tests/druid_func_tests.py b/tests/druid_func_tests.py
index 64543a8..2724f59 100644
--- a/tests/druid_func_tests.py
+++ b/tests/druid_func_tests.py
@@ -1,9 +1,4 @@
 # -*- coding: utf-8 -*-
-from __future__ import absolute_import
-from __future__ import division
-from __future__ import print_function
-from __future__ import unicode_literals
-
 import json
 import unittest
 
diff --git a/tests/druid_tests.py b/tests/druid_tests.py
index 00df0f8..9fa75fb 100644
--- a/tests/druid_tests.py
+++ b/tests/druid_tests.py
@@ -1,10 +1,5 @@
 # -*- coding: utf-8 -*-
 """Unit tests for Superset"""
-from __future__ import absolute_import
-from __future__ import division
-from __future__ import print_function
-from __future__ import unicode_literals
-
 from datetime import datetime
 import json
 import unittest
diff --git a/tests/email_tests.py b/tests/email_tests.py
index 3ee9f3e..219540a 100644
--- a/tests/email_tests.py
+++ b/tests/email_tests.py
@@ -1,10 +1,5 @@
 # -*- coding: utf-8 -*-
 """Unit tests for email service in Superset"""
-from __future__ import absolute_import
-from __future__ import division
-from __future__ import print_function
-from __future__ import unicode_literals
-
 from email.mime.application import MIMEApplication
 from email.mime.multipart import MIMEMultipart
 import logging
diff --git a/tests/fixtures/datasource.py b/tests/fixtures/datasource.py
index 647166f..b6d8c67 100644
--- a/tests/fixtures/datasource.py
+++ b/tests/fixtures/datasource.py
@@ -1,10 +1,5 @@
 # -*- coding: utf-8 -*-
 """Fixtures for test_datasource.py"""
-from __future__ import absolute_import
-from __future__ import division
-from __future__ import print_function
-from __future__ import unicode_literals
-
 datasource_post = {
     'id': None,
     'column_formats': {'ratio': '.2%'},
diff --git a/tests/form_tests.py b/tests/form_tests.py
index 93bef66..f77a725 100644
--- a/tests/form_tests.py
+++ b/tests/form_tests.py
@@ -1,9 +1,4 @@
 # -*- coding: utf-8 -*-
-from __future__ import absolute_import
-from __future__ import division
-from __future__ import print_function
-from __future__ import unicode_literals
-
 from wtforms.form import Form
 
 from superset.forms import (
diff --git a/tests/import_export_tests.py b/tests/import_export_tests.py
index 3a3d5f9..aa025cd 100644
--- a/tests/import_export_tests.py
+++ b/tests/import_export_tests.py
@@ -1,10 +1,5 @@
 # -*- coding: utf-8 -*-
 """Unit tests for Superset"""
-from __future__ import absolute_import
-from __future__ import division
-from __future__ import print_function
-from __future__ import unicode_literals
-
 import json
 import unittest
 
diff --git a/tests/macro_tests.py b/tests/macro_tests.py
index 8c887ac..c18b028 100644
--- a/tests/macro_tests.py
+++ b/tests/macro_tests.py
@@ -1,9 +1,4 @@
 # -*- coding: utf-8 -*-
-from __future__ import absolute_import
-from __future__ import division
-from __future__ import print_function
-from __future__ import unicode_literals
-
 from flask import json
 
 from superset import app
diff --git a/tests/model_tests.py b/tests/model_tests.py
index 1a78567..8e80c6a 100644
--- a/tests/model_tests.py
+++ b/tests/model_tests.py
@@ -1,9 +1,4 @@
 # -*- coding: utf-8 -*-
-from __future__ import absolute_import
-from __future__ import division
-from __future__ import print_function
-from __future__ import unicode_literals
-
 import textwrap
 
 from sqlalchemy.engine.url import make_url
diff --git a/tests/security_tests.py b/tests/security_tests.py
index fe7564e..ceedb40 100644
--- a/tests/security_tests.py
+++ b/tests/security_tests.py
@@ -1,9 +1,4 @@
 # -*- coding: utf-8 -*-
-from __future__ import absolute_import
-from __future__ import division
-from __future__ import print_function
-from __future__ import unicode_literals
-
 from superset import app, security_manager
 from .base_tests import SupersetTestCase
 
diff --git a/tests/sql_parse_tests.py b/tests/sql_parse_tests.py
index 3f66fed..f08d3e7 100644
--- a/tests/sql_parse_tests.py
+++ b/tests/sql_parse_tests.py
@@ -1,9 +1,4 @@
 # -*- coding: utf-8 -*-
-from __future__ import absolute_import
-from __future__ import division
-from __future__ import print_function
-from __future__ import unicode_literals
-
 import unittest
 
 from superset import sql_parse
diff --git a/tests/sqllab_tests.py b/tests/sqllab_tests.py
index a39643a..228abc7 100644
--- a/tests/sqllab_tests.py
+++ b/tests/sqllab_tests.py
@@ -1,10 +1,5 @@
 # -*- coding: utf-8 -*-
 """Unit tests for Sql Lab"""
-from __future__ import absolute_import
-from __future__ import division
-from __future__ import print_function
-from __future__ import unicode_literals
-
 from datetime import datetime, timedelta
 import json
 import unittest
diff --git a/tests/utils.py b/tests/utils.py
index d1a5adb..8aeef46 100644
--- a/tests/utils.py
+++ b/tests/utils.py
@@ -1,9 +1,4 @@
 # -*- coding: utf-8 -*-
-from __future__ import absolute_import
-from __future__ import division
-from __future__ import print_function
-from __future__ import unicode_literals
-
 import json
 from os import path
 
diff --git a/tests/utils_tests.py b/tests/utils_tests.py
index eb164b8..9646ffa 100644
--- a/tests/utils_tests.py
+++ b/tests/utils_tests.py
@@ -1,9 +1,4 @@
 # -*- coding: utf-8 -*-
-from __future__ import absolute_import
-from __future__ import division
-from __future__ import print_function
-from __future__ import unicode_literals
-
 from datetime import date, datetime, time, timedelta
 from decimal import Decimal
 import unittest
diff --git a/tests/viz_tests.py b/tests/viz_tests.py
index da7c02f..7325792 100644
--- a/tests/viz_tests.py
+++ b/tests/viz_tests.py
@@ -1,9 +1,4 @@
 # -*- coding: utf-8 -*-
-from __future__ import absolute_import
-from __future__ import division
-from __future__ import print_function
-from __future__ import unicode_literals
-
 from datetime import datetime
 import uuid
 


Mime
View raw message