Apply the _is_special guard.

This commit is contained in:
Raymond Hettinger 2005-06-20 09:49:42 +00:00
parent a7daba6866
commit e5a0a9609f

View file

@ -760,6 +760,7 @@ class Decimal(object):
Captures all of the information in the underlying representation. Captures all of the information in the underlying representation.
""" """
if self._is_special:
if self._isnan(): if self._isnan():
minus = '-'*self._sign minus = '-'*self._sign
if self._int == (0,): if self._int == (0,):