From f336c8b7e91f389c8af4255f589849b16ee3dcb5 Mon Sep 17 00:00:00 2001 From: Raymond Hettinger Date: Thu, 24 Jan 2008 02:05:06 +0000 Subject: Cleanup --- Lib/rational.py | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/Lib/rational.py b/Lib/rational.py index 070e593..e34a713 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' -- cgit v0.12