[GRASS-SVN] r37991 - grass/branches/releasebranch_6_4/gui/wxpython/gui_modules

svn_grass at osgeo.org svn_grass at osgeo.org
Sat Jun 20 04:35:48 EDT 2009


Author: martinl
Date: 2009-06-20 04:35:48 -0400 (Sat, 20 Jun 2009)
New Revision: 37991

Modified:
   grass/branches/releasebranch_6_4/gui/wxpython/gui_modules/gcmd.py
Log:
wxGUI: rename variable (Python 2.6 warning)


Modified: grass/branches/releasebranch_6_4/gui/wxpython/gui_modules/gcmd.py
===================================================================
--- grass/branches/releasebranch_6_4/gui/wxpython/gui_modules/gcmd.py	2009-06-20 08:33:35 UTC (rev 37990)
+++ grass/branches/releasebranch_6_4/gui/wxpython/gui_modules/gcmd.py	2009-06-20 08:35:48 UTC (rev 37991)
@@ -15,15 +15,13 @@
  - Command
  - CommandThread
 
-(C) 2007-2008 by the GRASS Development Team
+(C) 2007-2009 by the GRASS Development Team
 This program is free software under the GNU General Public
 License (>=v2). Read the file COPYING that comes with GRASS
 for details.
 
 @author Jachym Cepicky
-Martin Landa <landa.martin gmail.com>
-
- at date 2007-2008
+ at author Martin Landa <landa.martin gmail.com>
 """
 
 import os
@@ -60,14 +58,14 @@
 class GException(Exception):
     """Generic exception"""
     def __init__(self, message, title=_("Error"), parent=None):
-        self.message = message
+        self.msg = message
         self.parent = parent
         self.title = title
         
     def Show(self):
         dlg = wx.MessageDialog(parent=self.parent,
                                caption=self.title,
-                               message=self.message,
+                               message=self.msg,
                                style=wx.ICON_ERROR | wx.CENTRE)
         dlg.SetIcon(wx.Icon(os.path.join(globalvar.ETCICONDIR, 'grass_error.ico'), wx.BITMAP_TYPE_ICO))
         if self.parent:



More information about the grass-commit mailing list