Skip to content
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

run flake8 on Travis-CI, make flake8 clean #213

Merged
merged 2 commits into from
Jul 9, 2018

Conversation

ploxiln
Copy link
Member

@ploxiln ploxiln commented Jul 8, 2018

I'd be happy to make stylistic changes to the bits I had to tweak to avoid warnings.

@ploxiln ploxiln force-pushed the flake8_clean branch 2 times, most recently from c69b591 to 0ec0d25 Compare July 8, 2018 22:56
return x
return [cast(x) for x in v.replace('-', '.').split('.')]

if self.disabled.__code__ != Reader.disabled.__code__ and \
semver(data['version']) >= semver('0.3'):
logging.warning('disabled() deprecated and incompatible with nsqd >= 0.3. ' +
'It will be removed in a future release. Use set_max_in_flight(0) instead')
Copy link
Member Author

Choose a reason for hiding this comment

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

Fixed the long line here by just removing this logging.warning(), while leaving the warnings.warn() just below. I figure pre-1.0 stuff will be removed pretty soon anyway.

@ploxiln
Copy link
Member Author

ploxiln commented Jul 9, 2018

rebased on top of the python3.7 changes

@jehiah jehiah merged commit 136a1fb into nsqio:master Jul 9, 2018
@ploxiln ploxiln deleted the flake8_clean branch February 3, 2019 02:11
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