X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/f6bcfd974ef26faf6f91a62cac09827e09463fd1..f332a5a0f83caabe02e82508402c5f8096a04ea3:/wxPython/tests/val.py diff --git a/wxPython/tests/val.py b/wxPython/tests/val.py index 9a05123019..d36f0c092c 100644 --- a/wxPython/tests/val.py +++ b/wxPython/tests/val.py @@ -1,5 +1,4 @@ from wxPython.wx import * -import string class floatValidator(wxPyValidator): @@ -24,7 +23,7 @@ class floatValidator(wxPyValidator): if self.obj and self.attrName: tc = wxPyTypeCast(self.GetWindow(), "wxTextCtrl") text = tc.GetValue() - setattr(self.obj, self.attrName, string.atof(text)) + setattr(self.obj, self.attrName, float(text)) return true