Skip to content

Commit

Permalink
flake8
Browse files Browse the repository at this point in the history
  • Loading branch information
msarahan committed May 13, 2019
1 parent f87945e commit 9b64da0
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions conda/core/subdir_data.py
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
from .. import CondaError
from .._vendor.auxlib.ish import dals
from .._vendor.auxlib.logz import stringify
from .._vendor.toolz import concat, concatv, take
from .._vendor.toolz import concat, take
from ..base.constants import CONDA_HOMEPAGE_URL, CONDA_PACKAGE_EXTENSION_V1
from ..base.context import context
from ..common.compat import (ensure_binary, ensure_text_type, ensure_unicode, iteritems, iterkeys,
Expand Down Expand Up @@ -361,8 +361,9 @@ def _process_raw_repodata_str(self, raw_repodata_str):
k[:-6] + _tar_bz2 for k in iterkeys(conda_packages)
)

for group, copy_legacy_md5 in ((iteritems(conda_packages), True),
(((k, legacy_packages[k]) for k in use_these_legacy_keys), False)):
for group, copy_legacy_md5 in (
(iteritems(conda_packages), True),
(((k, legacy_packages[k]) for k in use_these_legacy_keys), False)):
for fn, info in group:
info['fn'] = fn
info['url'] = join_url(channel_url, fn)
Expand All @@ -371,7 +372,8 @@ def _process_raw_repodata_str(self, raw_repodata_str):
if counterpart in legacy_packages:
info['legacy_bz2_md5'] = legacy_packages[counterpart].get('md5')
info['legacy_bz2_size'] = legacy_packages[counterpart].get('size')
if add_pip and info['name'] == 'python' and info['version'].startswith(('2.', '3.')):
if (add_pip and info['name'] == 'python' and
info['version'].startswith(('2.', '3.'))):
info['depends'].append('pip')
info.update(meta_in_common)
if info.get('record_version', 0) > 1:
Expand Down

0 comments on commit 9b64da0

Please sign in to comment.