Skip to content

Commit

Permalink
remove future imports (apache#6050)
Browse files Browse the repository at this point in the history
  • Loading branch information
timifasubaa authored Oct 11, 2018
1 parent 247a85b commit 5c5be82
Show file tree
Hide file tree
Showing 28 changed files with 0 additions and 137 deletions.
1 change: 0 additions & 1 deletion requirements-dev.txt
Original file line number Diff line number Diff line change
@@ -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
Expand Down
5 changes: 0 additions & 5 deletions superset/cli.py
Original file line number Diff line number Diff line change
@@ -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
Expand Down
5 changes: 0 additions & 5 deletions superset/data/__init__.py
Original file line number Diff line number Diff line change
@@ -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
Expand Down
5 changes: 0 additions & 5 deletions superset/utils.py
Original file line number Diff line number Diff line change
@@ -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
Expand Down
5 changes: 0 additions & 5 deletions tests/access_tests.py
Original file line number Diff line number Diff line change
@@ -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

Expand Down
5 changes: 0 additions & 5 deletions tests/base_tests.py
Original file line number Diff line number Diff line change
@@ -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
Expand Down
5 changes: 0 additions & 5 deletions tests/cache_tests.py
Original file line number Diff line number Diff line change
@@ -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
Expand Down
5 changes: 0 additions & 5 deletions tests/celery_tests.py
Original file line number Diff line number Diff line change
@@ -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
Expand Down
5 changes: 0 additions & 5 deletions tests/core_tests.py
Original file line number Diff line number Diff line change
@@ -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
Expand Down
5 changes: 0 additions & 5 deletions tests/dashboard_tests.py
Original file line number Diff line number Diff line change
@@ -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

Expand Down
5 changes: 0 additions & 5 deletions tests/dataframe_test.py
Original file line number Diff line number Diff line change
@@ -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
Expand Down
5 changes: 0 additions & 5 deletions tests/datasource_tests.py
Original file line number Diff line number Diff line change
@@ -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
Expand Down
5 changes: 0 additions & 5 deletions tests/db_engine_specs_test.py
Original file line number Diff line number Diff line change
@@ -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
Expand Down
6 changes: 0 additions & 6 deletions tests/dict_import_export_tests.py
Original file line number Diff line number Diff line change
@@ -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

Expand All @@ -25,7 +20,6 @@

class DictImportExportTests(SupersetTestCase):
"""Testing export import functionality for dashboards"""

def __init__(self, *args, **kwargs):
super(DictImportExportTests, self).__init__(*args, **kwargs)

Expand Down
5 changes: 0 additions & 5 deletions tests/druid_func_tests.py
Original file line number Diff line number Diff line change
@@ -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

Expand Down
5 changes: 0 additions & 5 deletions tests/druid_tests.py
Original file line number Diff line number Diff line change
@@ -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
Expand Down
5 changes: 0 additions & 5 deletions tests/email_tests.py
Original file line number Diff line number Diff line change
@@ -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
Expand Down
5 changes: 0 additions & 5 deletions tests/fixtures/datasource.py
Original file line number Diff line number Diff line change
@@ -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%'},
Expand Down
5 changes: 0 additions & 5 deletions tests/form_tests.py
Original file line number Diff line number Diff line change
@@ -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 (
Expand Down
5 changes: 0 additions & 5 deletions tests/import_export_tests.py
Original file line number Diff line number Diff line change
@@ -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

Expand Down
5 changes: 0 additions & 5 deletions tests/macro_tests.py
Original file line number Diff line number Diff line change
@@ -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
Expand Down
5 changes: 0 additions & 5 deletions tests/model_tests.py
Original file line number Diff line number Diff line change
@@ -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
Expand Down
5 changes: 0 additions & 5 deletions tests/security_tests.py
Original file line number Diff line number Diff line change
@@ -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

Expand Down
5 changes: 0 additions & 5 deletions tests/sql_parse_tests.py
Original file line number Diff line number Diff line change
@@ -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
Expand Down
5 changes: 0 additions & 5 deletions tests/sqllab_tests.py
Original file line number Diff line number Diff line change
@@ -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
Expand Down
5 changes: 0 additions & 5 deletions tests/utils.py
Original file line number Diff line number Diff line change
@@ -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

Expand Down
5 changes: 0 additions & 5 deletions tests/utils_tests.py
Original file line number Diff line number Diff line change
@@ -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
Expand Down
5 changes: 0 additions & 5 deletions tests/viz_tests.py
Original file line number Diff line number Diff line change
@@ -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

Expand Down

0 comments on commit 5c5be82

Please sign in to comment.