[Python-checkins] python/nondist/sandbox/rational Rational.py, 1.1,
1.2
rhettinger at users.sourceforge.net
rhettinger at users.sourceforge.net
Tue Nov 25 16:20:44 EST 2003
Update of /cvsroot/python/python/nondist/sandbox/rational
In directory sc8-pr-cvs1:/tmp/cvs-serv26901
Modified Files:
Rational.py
Log Message:
SF patch #848793: Rational bug
(Submitted by Oren Tirosh)
* Fix a cut-and-paste typo.
Index: Rational.py
===================================================================
RCS file: /cvsroot/python/python/nondist/sandbox/rational/Rational.py,v
retrieving revision 1.1
retrieving revision 1.2
diff -C2 -d -r1.1 -r1.2
*** Rational.py 27 Mar 2001 16:50:10 -0000 1.1
--- Rational.py 25 Nov 2003 21:20:42 -0000 1.2
***************
*** 419,423 ****
if isinstance(n, type(1.0)):
n = _float_to_ratio(n)
! if isinstance(n, type(1.0)):
d = _float_to_ratio(d)
for arg in (n, d):
--- 419,423 ----
if isinstance(n, type(1.0)):
n = _float_to_ratio(n)
! if isinstance(d, type(1.0)):
d = _float_to_ratio(d)
for arg in (n, d):
More information about the Python-checkins
mailing list