Author: Manuel Jacob Branch: remove-remaining-smm Changeset: r69338:947db7701d1b Date: 2014-02-24 04:34 +0100 http://bitbucket.org/pypy/pypy/changeset/947db7701d1b/
Log: Fix. diff --git a/pypy/objspace/std/floatobject.py b/pypy/objspace/std/floatobject.py --- a/pypy/objspace/std/floatobject.py +++ b/pypy/objspace/std/floatobject.py @@ -475,10 +475,10 @@ w_lhs = self._to_float(space, w_lhs) if w_lhs is None: return space.w_NotImplemented - lhs = w_lhs.floatval - if lhs == 0.0: + selfval = self.floatval + if selfval == 0.0: raise OperationError(space.w_ZeroDivisionError, space.wrap("float division")) - return W_FloatObject(lhs / self.floatval) + return W_FloatObject(w_lhs.floatval / selfval) def descr_floordiv(self, space, w_rhs): w_rhs = self._to_float(space, w_rhs) _______________________________________________ pypy-commit mailing list pypy-commit@python.org https://mail.python.org/mailman/listinfo/pypy-commit