Skip to content

Commit 3515076

Browse files
committed
[nginxctl/helpers.py] # noqa: F821 for 2.7
1 parent f0aa70f commit 3515076

File tree

2 files changed

+7
-6
lines changed

2 files changed

+7
-6
lines changed

nginxctl/__main__.py

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -8,12 +8,13 @@
88
from enum import Enum
99
from itertools import chain
1010
from operator import itemgetter
11+
from subprocess import Popen
12+
1113
if sys.version_info[0] == 2:
12-
from whichcraft import which
13-
from itertools import ifilter as filter
14+
from whichcraft import which
15+
from itertools import ifilter as filter
1416
else:
15-
from shutil import which
16-
from subprocess import Popen
17+
from shutil import which
1718

1819
import crossplane
1920

nginxctl/helpers.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,8 @@
66
if version_info[0] == 2:
77
from codecs import open
88

9-
maketrans = string.maketrans
10-
string_types = basestring,
9+
maketrans = string.maketrans # noqa: F821
10+
string_types = basestring, # noqa: F821
1111
else:
1212
maketrans = str.maketrans
1313
string_types = str,

0 commit comments

Comments
 (0)