Permalink
Browse files

Fix linter issues regarding imports

  • Loading branch information...
1 parent f8d9813 commit c1960f8292464dc7da66f5ad1a3befc426f7a743 @donnemartin committed May 31, 2016
Showing with 4 additions and 16 deletions.
  1. +1 −1 scripts/run_code_checks.sh
  2. +1 −5 tests/test_keys.py
  3. +1 −5 tests/test_resources.py
  4. +1 −5 tests/test_saws.py
@@ -1,3 +1,3 @@
#!/usr/bin/env bash
-flake8 --max-line-length=80 --exclude=build,scratch,docs .
+flake8 --max-line-length=80 --exclude=build,scratch,docs,compat.py .
View
@@ -16,11 +16,7 @@
from __future__ import unicode_literals
from __future__ import print_function
import mock
-import sys
-if sys.version_info < (2, 7):
- import unittest2 as unittest
-else:
- import unittest
+from tests.compat import unittest
from prompt_toolkit.key_binding.input_processor import KeyPress
from prompt_toolkit.keys import Keys
from saws.saws import Saws
@@ -15,12 +15,8 @@
from __future__ import unicode_literals
from __future__ import print_function
-import sys
import mock
-if sys.version_info < (2, 7):
- import unittest2 as unittest
-else:
- import unittest
+from tests.compat import unittest
from saws.saws import Saws
View
@@ -17,12 +17,8 @@
from __future__ import print_function
import mock
import os
-import sys
import traceback
-if sys.version_info < (2, 7):
- import unittest2 as unittest
-else:
- import unittest
+from tests.compat import unittest
from saws.saws import Saws
from saws.commands import AwsCommands

0 comments on commit c1960f8

Please sign in to comment.