Skip to content

Use functools instead of a real function for the internal warn function - #4062

Merged
jni merged 2 commits into
scikit-image:masterfrom
hmaarrfk:touchup_internal_warn_func
Jul 30, 2019
Merged

jni merged 2 commits into
scikit-image:masterfrom
hmaarrfk:touchup_internal_warn_func

Conversation

@hmaarrfk

Copy link
Copy Markdown
Member

Description

As is the internal warn function is just broken, and used badly everywhere in the library.

This PR is a 3 liner stopgap to improve the library.
See #3467 for more in depth discussion.

Checklist

For reviewers

  • Check that the PR title is short, concise, and will make sense 1 year
    later.
  • Check that new functions are imported in corresponding __init__.py.
  • Check that new features, API changes, and deprecations are mentioned in
    doc/release/release_dev.rst.
  • Consider backporting the PR with @meeseeksdev backport to v0.14.x

@hmaarrfk
hmaarrfk force-pushed the touchup_internal_warn_func branch from 41a1013 to dce8699 Compare July 29, 2019 00:10

@jni jni left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Good point! 🤦‍♂️

@sciunto

sciunto commented Jul 30, 2019

Copy link
Copy Markdown
Member

@hmaarrfk please rebase and merge.

@jni
jni merged commit 2ffd9c8 into scikit-image:master Jul 30, 2019
@jni

jni commented Jul 30, 2019

Copy link
Copy Markdown
Member

@sciunto no need for rebasing when GitHub lets you resolve conflicts on the web interface now! =)

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.

3 participants