Skip to content

Rewrite cidict and LDAPUrlExtensions in terms of MutableMapping #186

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 7 commits into from
Jun 5, 2020

Conversation

encukou
Copy link
Member

@encukou encukou commented Mar 14, 2018

he UserDict API is not specified when it comes to extending:
it is not clear which methods can be safely overridden.

The MutableMapping ABC fixes this problem by providing an explicit
set of abstract methods, in terms of which the rest of the API
is implemented.

@codecov
Copy link

codecov bot commented Mar 14, 2018

Codecov Report

Merging #186 into master will increase coverage by 0.24%.
The diff coverage is 75.00%.

@@            Coverage Diff             @@
##           master     #186      +/-   ##
==========================================
+ Coverage   71.46%   71.71%   +0.24%     
==========================================
  Files          49       50       +1     
  Lines        4714     4748      +34     
  Branches      785      791       +6     
==========================================
+ Hits         3369     3405      +36     
+ Misses       1025     1022       -3     
- Partials      320      321       +1     
Impacted Files Coverage Δ
Lib/ldapurl.py 74.76% <60.00%> (-3.35%) ⬇️
Lib/ldap/cidict.py 96.49% <93.93%> (-3.51%) ⬇️
Lib/ldap/compat.py 67.27% <100.00%> (+1.23%) ⬆️
Lib/ldap/extop/passwd.py 100.00% <0.00%> (ø)
Modules/LDAPObject.c 67.85% <0.00%> (+0.32%) ⬆️
Lib/ldap/ldapobject.py 80.46% <0.00%> (+2.16%) ⬆️
Lib/ldap/extop/__init__.py 68.42% <0.00%> (+12.86%) ⬆️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update c803bfc...b1b3b5a. Read the comment docs.

@encukou
Copy link
Member Author

encukou commented Sep 20, 2019

@tiran, your comments should be addressed now. Could you re-review?

@tiran tiran added this to the 3.3 milestone May 28, 2020
tiran
tiran previously requested changes May 28, 2020
Copy link
Member

@tiran tiran left a comment

Choose a reason for hiding this comment

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

Sorry, the PR fell through the cracks.

Could you please rebase the PR to latest master and address the removed strlist_* functions?

@tiran
Copy link
Member

tiran commented Jun 5, 2020

@encukou Could you please rebase your PR?

encukou added 7 commits June 5, 2020 20:25
The UserDict API is not specified when it comes to extending:
it is not clear which methods can be safely overridden.

The MutableMapping ABC fixes this problem by providing an explicit
set of abstract methods, in terms of which the rest of the API
is implemented.

Switch to using MutableMapping for cidict.
The UserDict API is not specified when it comes to extending:
it is not clear which methods can be safely overridden.

The MutableMapping ABC fixes this problem by providing an explicit
set of abstract methods, in terms of which the rest of the API
is implemented.

Switch to using MutableMapping for LDAPUrlExtensions.
@encukou encukou force-pushed the remove-userdict branch from d311973 to b1b3b5a Compare June 5, 2020 18:55
@encukou
Copy link
Member Author

encukou commented Jun 5, 2020

Here it is.

@tiran
Copy link
Member

tiran commented Jun 5, 2020

LGTM, let's wait for Travis.

@encukou
Copy link
Member Author

encukou commented Jun 5, 2020

@encukou encukou dismissed tiran’s stale review June 5, 2020 19:27

The functions were deprecated rather than removed.

@encukou encukou merged commit 723b509 into python-ldap:master Jun 5, 2020
@encukou encukou deleted the remove-userdict branch June 5, 2020 19:28
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.

4 participants
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy