summaryrefslogtreecommitdiffstats
path: root/Lib/fpformat.py
diff options
context:
space:
mode:
authorGuido van Rossum <guido@python.org>2001-01-17 15:08:37 (GMT)
committerGuido van Rossum <guido@python.org>2001-01-17 15:08:37 (GMT)
commit846d6dbbe6b5663dc2437c46815fda98eb24a934 (patch)
tree88829cf04b9b129dad4eb5dfb4bd1b982934ad00 /Lib/fpformat.py
parentd2ebe8775e03c90539bc820c275d18a413c36a18 (diff)
downloadcpython-846d6dbbe6b5663dc2437c46815fda98eb24a934.zip
cpython-846d6dbbe6b5663dc2437c46815fda98eb24a934.tar.gz
cpython-846d6dbbe6b5663dc2437c46815fda98eb24a934.tar.bz2
Fix a bizarre typo in the helper class ComparableException: the
__getattr__() method, which clearly (like the other methods) was intended to pass the __getattr__() call on to the self.err object, mistakenly returned getattr(self, self.err) rather than getattr(self.err, attr). Since self.err is not a string, this always raises a TypeError. Apparently that doesn't bother for the one attribute for which __getattr__() is actually called ('__coerce__'), but it broke the rich comparisons stuff that I'm trying to get into shape, so I'm fixing this now. (I could also simply remove the __getattr__() method, but fixing it seems more in the spirit of what the ComparableException class is trying to do.)
Diffstat (limited to 'Lib/fpformat.py')
0 files changed, 0 insertions, 0 deletions