-
Notifications
You must be signed in to change notification settings - Fork 1.2k
Get rid of unused code #1222
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
Get rid of unused code #1222
Conversation
lifus
commented
Jan 27, 2016
9a3dd2d to
7d2839a
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
itervalues isn't python 3 compatible.
Edit: lots of non python 3 compatible constructs are used. No clue why this doesn't break the tests.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Well, 2to3 takes care of that:
Line 54 in 79a2d71
| extra_opts['use_2to3'] = True |
You might verify that it gets translated to
iterable = iter(items.values()) as mentioned in https://www.python.org/dev/peps/pep-0469/
7d2839a to
cb59356
Compare
BaseDict interface is more like dict interface now
It's useless anyway, there are neither instantiations of QuerySetNoDeRef nor calls of __derefence. No client could possibly rely on this class
cb59356 to
989f79d
Compare
|
Review status: all files reviewed at latest revision, 2 unresolved discussions. mongoengine/dereference.py, line 93 [r1] (raw file): mongoengine/queryset/queryset.py, line 159 [r2] (raw file): Comments from the review on Reviewable.io |
|
I believe most of this has been addressed by #1428 already. Thanks anyway! |