summaryrefslogtreecommitdiffstats
path: root/Lib/fractions.py
diff options
context:
space:
mode:
Diffstat (limited to 'Lib/fractions.py')
-rw-r--r--Lib/fractions.py2
1 files changed, 0 insertions, 2 deletions
diff --git a/Lib/fractions.py b/Lib/fractions.py
index 27b27f4..9624c90 100644
--- a/Lib/fractions.py
+++ b/Lib/fractions.py
@@ -526,8 +526,6 @@ class Fraction(numbers.Rational):
if isinstance(other, numbers.Rational):
return op(self._numerator * other.denominator,
self._denominator * other.numerator)
- if isinstance(other, numbers.Complex) and other.imag == 0:
- other = other.real
if isinstance(other, float):
if math.isnan(other) or math.isinf(other):
return op(0.0, other)