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
Add $elemMatch return fields operator #143
Conversation
It seems the build is failing on Python 2.6. |
def _extract_projection_operators(self, fields): | ||
"""Removes and returns fields with projection operators.""" | ||
result = {} | ||
allowed_projection_operators = {'$elemMatch'} |
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.
I don't know who still uses Python 2.6, but the set syntax with curly braces is not supported there. You'll have to write set(['$elemMatch'])
.
The Travis build is failing (I'm guessing on 2.6)... |
Yeah. As I pointed out this is because set literals are not available in Python 2.6. If Python 2.6 is still a version that needs to be supported, than you have to use the set constructor explicitly. |
@vmalloc In my opinion it would be ok to just drop support for Python 2.6. All reasonably up to date distributions ship with at least Python 2.7.x |
@mdomke I tend to agree. I see no reason for keeping 2.6 support at this point. |
4a560b2
to
b61f629
Compare
b61f629
to
ac254f5
Compare
@mdomke No problem, done. |
Add $elemMatch return fields operator
No description provided.