Skip to content

Commit

Permalink
Adding from __future__ imports
Browse files Browse the repository at this point in the history
  • Loading branch information
mistercrunch committed Apr 7, 2016
1 parent 6b0b03e commit 9df39a8
Show file tree
Hide file tree
Showing 11 changed files with 46 additions and 0 deletions.
4 changes: 4 additions & 0 deletions caravel/__init__.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,8 @@
"""Package's main module!"""
from __future__ import absolute_import
from __future__ import division
from __future__ import print_function
from __future__ import unicode_literals

import logging
import os
Expand Down
5 changes: 5 additions & 0 deletions caravel/ascii_art.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
from __future__ import absolute_import
from __future__ import division
from __future__ import print_function
from __future__ import unicode_literals

error = (
"MMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMM\n"+
"MMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMNNMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMM\n"+
Expand Down
4 changes: 4 additions & 0 deletions caravel/bin/caravel
Original file line number Diff line number Diff line change
@@ -1,4 +1,8 @@
#!/usr/bin/env python
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
Expand Down
5 changes: 5 additions & 0 deletions caravel/config.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,11 @@
in your PYTHONPATH as there is a ``from local_config import *``
at the end of this file.
"""
from __future__ import absolute_import
from __future__ import division
from __future__ import print_function
from __future__ import unicode_literals

import os
from flask_appbuilder.security.manager import AUTH_DB
from dateutil import tz
Expand Down
4 changes: 4 additions & 0 deletions caravel/data/__init__.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,8 @@
"""Loads datasets, dashboards and slices in a new caravel instance"""
from __future__ import absolute_import
from __future__ import division
from __future__ import print_function
from __future__ import unicode_literals

import gzip
import json
Expand Down
4 changes: 4 additions & 0 deletions caravel/data/countries.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,8 @@
"""This module contains data related to countries and is used for geo mapping"""
from __future__ import absolute_import
from __future__ import division
from __future__ import print_function
from __future__ import unicode_literals

countries = [
{
Expand Down
4 changes: 4 additions & 0 deletions caravel/forms.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,8 @@
"""Contains the logic to create cohesive forms on the explore view"""
from __future__ import absolute_import
from __future__ import division
from __future__ import print_function
from __future__ import unicode_literals

from wtforms import (
Form, SelectMultipleField, SelectField, TextField, TextAreaField,
Expand Down
4 changes: 4 additions & 0 deletions caravel/models.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,8 @@
"""A collection of ORM sqlalchemy models for Caravel"""
from __future__ import absolute_import
from __future__ import division
from __future__ import print_function
from __future__ import unicode_literals

from copy import deepcopy, copy
from collections import namedtuple
Expand Down
4 changes: 4 additions & 0 deletions caravel/utils.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,8 @@
"""Utility functions used across Caravel"""
from __future__ import absolute_import
from __future__ import division
from __future__ import print_function
from __future__ import unicode_literals

from datetime import datetime
import hashlib
Expand Down
4 changes: 4 additions & 0 deletions caravel/views.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,8 @@
"""Flask web views for Caravel"""
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
Expand Down
4 changes: 4 additions & 0 deletions caravel/viz.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,10 @@
These objects represent the backend of all the visualizations that
Caravel can render.
"""
from __future__ import absolute_import
from __future__ import division
from __future__ import print_function
from __future__ import unicode_literals

from collections import OrderedDict, defaultdict
from datetime import datetime, timedelta
Expand Down

0 comments on commit 9df39a8

Please sign in to comment.