Skip to content

Commit 919f2df

Browse files
committed
Clean up
1 parent f096148 commit 919f2df

1 file changed

Lines changed: 3 additions & 2 deletions

File tree

‎setup.py‎

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -124,7 +124,8 @@ def __len__(self):
124124
])
125125

126126
# For environment markers
127-
import platform # @UnusedImport
127+
import platform
128+
assert platform
128129

129130
python_version = '%s.%s' % sys.version_info[:2]
130131
python_full_version = sys.version.split()[0]
@@ -361,7 +362,7 @@ def run_3to2(args=None):
361362
proc = subprocess.Popen(['3to2'] + args, stderr=subprocess.PIPE)
362363
except OSError:
363364
for path in glob.glob('*.egg'):
364-
if os.path.isdir(path) and not path in sys.path:
365+
if os.path.isdir(path) and path not in sys.path:
365366
sys.path.append(path)
366367
try:
367368
from lib3to2.main import main as lib3to2_main

0 commit comments

Comments
 (0)