[Python-checkins] r53757 - python/trunk/Lib/test/test_descr.py

armin.rigo python-checkins at python.org
Mon Feb 12 17:23:25 CET 2007


Author: armin.rigo
Date: Mon Feb 12 17:23:24 2007
New Revision: 53757
Modified:
 python/trunk/Lib/test/test_descr.py
Log:
Fix the line to what is my guess at the original author's meaning.
(The line has no effect anyway, but is present because it's
customary call the base class __init__).
Modified: python/trunk/Lib/test/test_descr.py
==============================================================================
--- python/trunk/Lib/test/test_descr.py	(original)
+++ python/trunk/Lib/test/test_descr.py	Mon Feb 12 17:23:24 2007
@@ -2226,7 +2226,7 @@
 __slots__ = ['prec']
 def __init__(self, value=0.0, prec=12):
 self.prec = int(prec)
- float.__init__(value)
+ float.__init__(self, value)
 def __repr__(self):
 return "%.*g" % (self.prec, self)
 vereq(repr(precfloat(1.1)), "1.1")


More information about the Python-checkins mailing list

AltStyle によって変換されたページ (->オリジナル) /