X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/f54a36bba8b0923ddae107ab7affdb3696b4edba..1eeb64fb65f7e6cf10b05ba8a0875206cf47d94c:/wxPython/wx/lib/masked/maskededit.py diff --git a/wxPython/wx/lib/masked/maskededit.py b/wxPython/wx/lib/masked/maskededit.py index 088ec62fc1..0bd99c567f 100644 --- a/wxPython/wx/lib/masked/maskededit.py +++ b/wxPython/wx/lib/masked/maskededit.py @@ -5253,7 +5253,7 @@ class MaskedEditMixin: if not valid: ## dbg('cannot convert string to valid time') pass - if valid: dbg('valid date') +## if valid: dbg('valid date') ## dbg(indent=0) return valid @@ -5622,7 +5622,7 @@ class MaskedEditMixin: and sel_to >= edit_end and not self._GetValue()[edit_start:sel_start].strip() ): # text won't fit within selection, but left of selection is empty; - # check to see if we can expand selection to accomodate the value: + # check to see if we can expand selection to accommodate the value: empty_space = sel_start - edit_start amount_needed = len(paste_text) - (sel_to - sel_start) if amount_needed <= empty_space: