diff --git a/setup.py b/setup.py index c75e4173..ab22d39d 100644 --- a/setup.py +++ b/setup.py @@ -16,7 +16,7 @@ # See the License for the specific language governing permissions and # limitations under the License. -from __future__ import absolute_import, division, print_function, unicode_literals +from __future__ import absolute_import, division, print_function from setuptools import setup import os import sys @@ -37,10 +37,7 @@ def get_version(): with open(version_file) as f: return f.read() except: - version = '0.0.0' - print("Warning: Generating default version", version, file=sys.stderr) - print("To override this, please create a file", version_file, "with the tile-generator version in it.", file=sys.stderr) - return version + return '0.0.0' setup( name = "tile-generator", diff --git a/tile_generator/bosh.py b/tile_generator/bosh.py index d5a0b812..29203f6e 100644 --- a/tile_generator/bosh.py +++ b/tile_generator/bosh.py @@ -16,7 +16,7 @@ # See the License for the specific language governing permissions and # limitations under the License. -from __future__ import absolute_import, division, print_function, unicode_literals +from __future__ import absolute_import, division, print_function import os import sys import errno diff --git a/tile_generator/build.py b/tile_generator/build.py index dda3dc83..e1c9daf2 100644 --- a/tile_generator/build.py +++ b/tile_generator/build.py @@ -16,7 +16,7 @@ # See the License for the specific language governing permissions and # limitations under the License. -from __future__ import absolute_import, division, print_function, unicode_literals +from __future__ import absolute_import, division, print_function import os import sys import errno diff --git a/tile_generator/build_unittest.py b/tile_generator/build_unittest.py index b3a90679..7b9fd635 100644 --- a/tile_generator/build_unittest.py +++ b/tile_generator/build_unittest.py @@ -14,12 +14,12 @@ # See the License for the specific language governing permissions and # limitations under the License. -from __future__ import absolute_import, division, print_function, unicode_literals +from __future__ import absolute_import, division, print_function import unittest from . import build import sys from contextlib import contextmanager -from io import StringIO +from StringIO import StringIO @contextmanager def capture_output(): diff --git a/tile_generator/erb.py b/tile_generator/erb.py index 60e2c5fd..accb69b3 100644 --- a/tile_generator/erb.py +++ b/tile_generator/erb.py @@ -16,7 +16,7 @@ # See the License for the specific language governing permissions and # limitations under the License. -from __future__ import absolute_import, division, print_function, unicode_literals +from __future__ import absolute_import, division, print_function import os import sys import errno diff --git a/tile_generator/opsmgr.py b/tile_generator/opsmgr.py index 2a1e2f68..f08ea34c 100644 --- a/tile_generator/opsmgr.py +++ b/tile_generator/opsmgr.py @@ -16,7 +16,7 @@ # See the License for the specific language governing permissions and # limitations under the License. -from __future__ import absolute_import, division, print_function, unicode_literals +from __future__ import absolute_import, division, print_function import sys import yaml import json diff --git a/tile_generator/opsmgr_unittest.py b/tile_generator/opsmgr_unittest.py index 0fb1df17..e7bf0aec 100644 --- a/tile_generator/opsmgr_unittest.py +++ b/tile_generator/opsmgr_unittest.py @@ -14,7 +14,7 @@ # See the License for the specific language governing permissions and # limitations under the License. -from __future__ import absolute_import, division, print_function, unicode_literals +from __future__ import absolute_import, division, print_function import unittest import mock import requests diff --git a/tile_generator/pcf.py b/tile_generator/pcf.py index 51665110..e04880ef 100755 --- a/tile_generator/pcf.py +++ b/tile_generator/pcf.py @@ -16,8 +16,7 @@ # See the License for the specific language governing permissions and # limitations under the License. -# no unicode_literals here because http://click.pocoo.org/python3/ -from __future__ import absolute_import, division, print_function#, unicode_literals +from __future__ import absolute_import, division, print_function import os import sys import yaml diff --git a/tile_generator/template.py b/tile_generator/template.py index b322e244..d53723dd 100644 --- a/tile_generator/template.py +++ b/tile_generator/template.py @@ -16,7 +16,7 @@ # See the License for the specific language governing permissions and # limitations under the License. -from __future__ import absolute_import, division, print_function, unicode_literals +from __future__ import absolute_import, division, print_function import os import sys import errno diff --git a/tile_generator/tile.py b/tile_generator/tile.py index 0f30f353..40e6448d 100755 --- a/tile_generator/tile.py +++ b/tile_generator/tile.py @@ -16,8 +16,7 @@ # See the License for the specific language governing permissions and # limitations under the License. -# no unicode_literals here because http://click.pocoo.org/python3/ -from __future__ import absolute_import, division, print_function#, unicode_literals +from __future__ import absolute_import, division, print_function import click import sys import os diff --git a/tile_generator/util.py b/tile_generator/util.py index 07e2d2d8..d47fb2a2 100644 --- a/tile_generator/util.py +++ b/tile_generator/util.py @@ -16,7 +16,7 @@ # See the License for the specific language governing permissions and # limitations under the License. -from __future__ import absolute_import, division, print_function, unicode_literals +from __future__ import absolute_import, division, print_function import errno import os import requests