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

Conversation

@schmeichelinho
Copy link

@schmeichelinho schmeichelinho commented Aug 9, 2017

PR Summary

WebAgg is by default accessible to anyone on the network, so to provide better control over the access to it, it is needed to add the address parameter

return p

def validate_webagg_address(s):
if s != None:
Copy link
Member

Choose a reason for hiding this comment

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

!= --> is not

Copy link
Member

Choose a reason for hiding this comment

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

Apparently our linter now catches this!

 PEP8-check(ignoring E111 E114 E115 E116 E121 E122 E123 E124 E125 E126 E127 E128 E129 E131 E226 E240 E241 E242 E243 E244 E245 E246 E247 E248 E249 E265 E266 E704 W503 E203 E225 E261 E302 E501) 
[gw1] linux -- Python 3.6.2 /home/travis/build/matplotlib/matplotlib/venv/bin/python
/home/travis/build/matplotlib/matplotlib/lib/matplotlib/rcsetup.py:889:10: E711 comparison to None should be 'if cond is not None:'
    if s != None:
         ^

@dstansby dstansby added this to the 2.2 (next next feature release) milestone Aug 9, 2017

success = None
cls.port = rcParams['webagg.port']
cls.address = rcParams['webagg.address']
Copy link
Member

Choose a reason for hiding this comment

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

Should this be in a if address is None block?

@tacaswell
Copy link
Member

👍 in principle. This will need an entry in https://github.com/matplotlib/matplotlib/tree/master/doc/users/next_whats_new (so it's existence gets advertised).

@tacaswell
Copy link
Member

Can you squash those commits so we don't have commit messages of '...'?

@schmeichelinho
Copy link
Author

Is there anything else to do with this pull request? It seems to fail the coverage and appveyor check, but I am not sure what to do about it.

@anntzer
Copy link
Contributor

anntzer commented Oct 5, 2017

The coverage check is fine (well if you can think of a reasonable way to test the PR that'd be nice but I can imagine it's tricky). Appveyor has been failing for a while, this is investigated elsewhere.
I just don't know anything about webagg so I'll leave it to the experts :p

@dstansby
Copy link
Member

Looks good to me; I've restarted the appveyor build because I think it should now be fixed.

@dopplershift dopplershift merged commit 608b24f into matplotlib:master Oct 28, 2017
@QuLogic QuLogic modified the milestones: needs sorting, v2.2.0 Feb 13, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

8 participants

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