Skip to content

Fix lint issues for privacy app #2888

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 6 commits into from
May 23, 2017

Conversation

lordmauve
Copy link
Contributor

No description provided.

Copy link
Contributor

@agjohnson agjohnson left a comment

Choose a reason for hiding this comment

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

I think this would be safe to rename the variable and remove the builtin override altogether. If there is any strong case against this, I don't feel strongly about this though.

@@ -8,12 +14,17 @@
log = logging.getLogger(__name__)


# The file builting was removed in Python 3, so we should not use it
# Setting to None here to silence pylint for this builtin only
file = None # pylint: disable=redefined-builtin
Copy link
Contributor

Choose a reason for hiding this comment

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

Perhaps instead this should just rename the file argument on the various copy methods to not use a builtin. A quick search shows this as the only mention of the file argument:

https://github.com/rtfd/readthedocs.org/blob/b9f15d9172df2d2d0c2f5fc132ba9c1b25faf709/readthedocs/projects/tasks.py#L857

Copy link
Contributor Author

Choose a reason for hiding this comment

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

That was my first thought, but I wasn't sure if my searches were finding everything. I'll go ahead and do this.

@agjohnson agjohnson merged commit df3d547 into readthedocs:master May 23, 2017
fmoor pushed a commit to fmoor/readthedocs.org that referenced this pull request May 24, 2017
* Fix lint issues for privacy app

* Rename file param to Syncers

* Roll back comment change
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants