mirror of
https://github.com/python/cpython.git
synced 2025-07-27 21:24:32 +00:00
Put an extra space into the repr of a Fraction:
Fraction(1, 2) instead of Fraction(1,2).
This commit is contained in:
parent
03d3abf375
commit
cd873fc142
3 changed files with 4 additions and 4 deletions
|
@ -187,7 +187,7 @@ class Fraction(Rational):
|
|||
|
||||
def __repr__(self):
|
||||
"""repr(self)"""
|
||||
return ('Fraction(%r,%r)' % (self.numerator, self.denominator))
|
||||
return ('Fraction(%r, %r)' % (self.numerator, self.denominator))
|
||||
|
||||
def __str__(self):
|
||||
"""str(self)"""
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue