Author: Manuel Jacob Branch: refactor-buffer-api Changeset: r69013:2f4fc613cc99 Date: 2014-01-30 06:49 +0100 http://bitbucket.org/pypy/pypy/changeset/2f4fc613cc99/
Log: Fix. diff --git a/pypy/objspace/std/longtype.py b/pypy/objspace/std/longtype.py --- a/pypy/objspace/std/longtype.py +++ b/pypy/objspace/std/longtype.py @@ -48,7 +48,7 @@ unicode_to_decimal_w(space, w_value)) else: try: - w_buffer = space.buffer(w_value) + buf = space.buffer_w(w_value) except OperationError, e: if not e.match(space, space.w_TypeError): raise @@ -56,7 +56,6 @@ "long() argument must be a string or a number, not '%T'", w_value) else: - buf = space.interp_w(Buffer, w_buffer) return string_to_w_long(space, w_longtype, buf.as_str()) else: base = space.int_w(w_base) _______________________________________________ pypy-commit mailing list pypy-commit@python.org https://mail.python.org/mailman/listinfo/pypy-commit