Skip to content

Commit

Permalink
Relax pycodestyle: import only allowed at the top
Browse files Browse the repository at this point in the history
While this is a really good convention, sometimes one must import
stuff inside a try except block. This block is still at the top, but pycodestyle
treats like it isn't, because it's in an idented block, and the outeer scope.
  • Loading branch information
oz123 authored Apr 9, 2019
1 parent 38894cc commit 806d966
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions kubernetes/utils/create_from_yaml.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,9 +15,9 @@
import sys

if sys.version_info.major < 3:
from StringIO import StringIO
from StringIO import StringIO # noqa: F406
else:
from io import StringIO
from io import StringIO # noqa: F406

from os import path

Expand Down

0 comments on commit 806d966

Please sign in to comment.