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

Use jaraco.collections for code re-use on CaseInsensitiveDict. #1654

Merged
merged 4 commits into from Dec 17, 2017

Conversation

jaraco
Copy link
Member

@jaraco jaraco commented Oct 28, 2017

  • What kind of change does this PR introduce? (Bug fix, feature, docs update, ...)

Feature and Bugfix and code removal.

  • What is the related issue number (starting with #)

#1231

  • What is the current behavior? (You can also link to an open issue here)

CherryPy has its own limited implementation of a Case-Insensitive Dict.

  • What is the new behavior (if this is a feature change)?

I was reviewing #1633, I realized I'd seen this pattern before... and built a general-purpose class for its purpose... and released it as a library for others to consume. This approach removes CherryPy's bespoke implementation, which has the reported deficiency, and replaces it with the proven class found in jaraco.collections.

Copy link
Member Author

@jaraco jaraco left a comment

Choose a reason for hiding this comment

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

In light of #1671, this dependency is not allowed, so the functionality must be inlined before this PR can move forward in the current master.

@codecov
Copy link

codecov bot commented Dec 17, 2017

Codecov Report

Merging #1654 into master will increase coverage by 0.86%.
The diff coverage is 81.25%.

@@            Coverage Diff            @@
##           master   #1654      +/-   ##
=========================================
+ Coverage   78.04%   78.9%   +0.86%     
=========================================
  Files         106     106              
  Lines       13798   15761    +1963     
=========================================
+ Hits        10769   12437    +1668     
- Misses       3029    3324     +295

@jaraco jaraco force-pushed the feature/reuse-case-insensitive-dict branch from 5da63b7 to 3bcefda Compare December 17, 2017 16:41
@jaraco jaraco merged commit 0e45422 into master Dec 17, 2017
@jaraco jaraco deleted the feature/reuse-case-insensitive-dict branch December 17, 2017 17:01
@webknjaz
Copy link
Member

This pull request fixes 1 alert - view on lgtm.com

fixed alerts:

  • 1 for Non-callable called

Comment posted by lgtm.com

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.

None yet

2 participants