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

__builtins__["len"] -> __builtins__.len for PyPy #91

Merged
merged 2 commits into from
May 13, 2015
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion txmongo/protocol.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@

from collections import namedtuple
import struct
import __builtin__

import base64
import hmac
Expand Down Expand Up @@ -73,7 +74,7 @@ class KillCursors(namedtuple("KillCursors", ["len", "request_id", "response_to",
"zero", "n_cursors", "cursors"])):
def __new__(cls, len=0, request_id=0, response_to=0, opcode=OP_KILL_CURSORS,
zero=0, n_cursors=0, cursors=None):
n_cursors = __builtins__["len"](cursors)
n_cursors = __builtin__.len(cursors)
return super(KillCursors, cls).__new__(cls, len, request_id, response_to,
opcode, zero, n_cursors, cursors)

Expand Down