commit | f336c8b7e91f389c8af4255f589849b16ee3dcb5 | [log] [tgz] |
---|---|---|
author | Raymond Hettinger <python@rcn.com> | Thu Jan 24 02:05:06 2008 +0000 |
committer | Raymond Hettinger <python@rcn.com> | Thu Jan 24 02:05:06 2008 +0000 |
tree | 9531410e02c821b94da673e953cc88a600e56e6b | |
parent | eb461904eb277c5a92a7d2672f941cb095cf1a93 [diff] |
Cleanup
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 @@ 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'