Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings
This repository was archived by the owner on Oct 21, 2022. It is now read-only.

Conversation

@liyanhui1228
Copy link
Member

No description provided.

@liyanhui1228 liyanhui1228 requested a review from ylil93 August 7, 2018 01:30
def _is_py_version_incompatible(self, result):
if result.status == compatibility_store.Status.INSTALL_ERROR:
for version in [2, 3]:
for pkg in result.packages:
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think the contained if statement may have too many things going on inside of it, maybe you can split things up for example like this:

                for pkg in result.packages:
                    major_version = result.python_major_version
                    name = pkg.install_name
                    unsupported = configs.PKG_PY_VERSION_NOT_SUPPORTED[version]
                    if major_version == version and name in unsupported:
                        return True

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Done, thx!

Copy link
Contributor

@ylil93 ylil93 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@ylil93 ylil93 merged commit 15d2f1b into GoogleCloudPlatform:master Aug 8, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants

Morty Proxy This is a proxified and sanitized view of the page, visit original site.