Add 'from __future__ import absolute_import' to all files to enforce Python3-style imports

This commit is contained in:
Greg Neagle
2019-05-03 21:34:56 -07:00
parent 531d99a01a
commit df60207145
85 changed files with 112 additions and 76 deletions

View File

@@ -19,6 +19,7 @@ Unit tests for display.display_* functions.
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
from __future__ import absolute_import
import unittest

View File

@@ -6,7 +6,7 @@ test_isapprunning.py
Unit tests for processes.isAppRunning.
"""
from __future__ import print_function
from __future__ import absolute_import, print_function
# Copyright 2016-present Nate Walck.
#
# Licensed under the Apache License, Version 2.0 (the "License");
@@ -20,6 +20,7 @@ from __future__ import print_function
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
from __future__ import absolute_import
import unittest

2
code/client/tests/travisci.py Normal file → Executable file
View File

@@ -1,6 +1,6 @@
#!/usr/bin/python env
from __future__ import absolute_import, print_function
from __future__ import print_function
import subprocess
import sys