# HG changeset patch # User lbessard # Date 1186577739 -7200 # Node ID cb6bed0720f0538af5ed5bc4a97bd0e972409b08 # Parent dd6f693e46a11d05f04487b50021118d0920b55e Cleaning code for using only wxPython 2.6 class naming diff -r dd6f693e46a1 -r cb6bed0720f0 PLCOpenEditor.py --- a/PLCOpenEditor.py Tue Aug 07 17:38:48 2007 +0200 +++ b/PLCOpenEditor.py Wed Aug 08 14:55:39 2007 +0200 @@ -2947,7 +2947,7 @@ ignored_exceptions = [] # a problem with a line in a module is only reported once per session -def wxAddExceptHook(path, app_version='[No version]'):#, ignored_exceptions=[]): +def AddExceptHook(path, app_version='[No version]'):#, ignored_exceptions=[]): def handle_exception(e_type, e_value, e_traceback): traceback.print_exception(e_type, e_value, e_traceback) # this is very helpful when there's an exception in the rest of this func @@ -2993,7 +2993,7 @@ wx.InitAllImageHandlers() # Install a exception handle for bug reports - wxAddExceptHook(os.getcwd(),__version__) + AddExceptHook(os.getcwd(),__version__) frame = PLCOpenEditor(None)