From: Raymond Hettinger Date: Thu, 24 Jan 2008 02:05:06 +0000 (+0000) Subject: Cleanup X-Git-Tag: v2.6a1~441 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=f336c8b7e91f389c8af4255f589849b16ee3dcb5;p=python Cleanup --- diff --git a/Lib/rational.py b/Lib/rational.py index 070e593bad..e34a713440 100755 --- a/Lib/rational.py +++ b/Lib/rational.py @@ -179,9 +179,7 @@ class Rational(RationalAbc): for e in reversed(seq): n, d = d, n n += e * d - if seq: - return cls(n, d) - return cls(0) + return cls(n, d) if seq else cls(0) def as_continued_fraction(self): 'Return continued fraction expressed as a list'