diff --git a/wxPython/src/mac/utils.py b/wxPython/src/mac/utils.py index 98fb73308a..5dc18f722d 100644 --- a/wxPython/src/mac/utils.py +++ b/wxPython/src/mac/utils.py @@ -573,7 +573,7 @@ class wxDateTimePtr : return self.__sub__DT(other) if isinstance(other, wxTimeSpanPtr): return self.__sub__TS(other) - if isinstnace(other, wxDateSpanPtr): + if isinstance(other, wxDateSpanPtr): return self.__sub__DS(other) raise TypeError, 'Invalid r.h.s. type for __sub__' diff --git a/wxPython/src/mac/wx.py b/wxPython/src/mac/wx.py index 7c619bf625..7d9efd53a9 100644 --- a/wxPython/src/mac/wx.py +++ b/wxPython/src/mac/wx.py @@ -1595,23 +1595,9 @@ except NameError: True = 1==1 False = 1==0 -class _DeprecatedNonBool: - def __init__(self, val, txt): - self.__val = val - self.__txt = txt - def __int__(self): - import warnings - warnings.warn("Use Python's %s instead" % self.__txt, DeprecationWarning, 3) - return self.__val - def __nonzero__(self): - return self.__int__() - def __repr__(self): - if self.__val: text = "True" - else: text = "False" - return "_DeprecatedNonBool: %s" % text - -TRUE = true = _DeprecatedNonBool(True, 'True') -FALSE = false = _DeprecatedNonBool(False, 'False') +# Backwards compaatible +TRUE = true = True +FALSE = false = False #----------------------------------------------------------------------