silke: thuban/Thuban/UI about.py,1.14,1.15

cvs@intevation.de cvs at intevation.de
Fri Aug 20 18:50:24 CEST 2004


Author: silke

Update of /thubanrepository/thuban/Thuban/UI
In directory doto:/tmp/cvs-serv32700/Thuban/UI

Modified Files:
	about.py 
Log Message:
Changes to be consistent with coding style

Index: about.py
===================================================================
RCS file: /thubanrepository/thuban/Thuban/UI/about.py,v
retrieving revision 1.14
retrieving revision 1.15
diff -u -d -r1.14 -r1.15
--- about.py	11 Aug 2004 08:09:44 -0000	1.14
+++ about.py	20 Aug 2004 16:50:22 -0000	1.15
@@ -2,6 +2,7 @@
 # Authors:
 # Jonathan Coles <jonathan at intevation.de>
 # Bernhard Reiter <bernhard at intevation.de>
+# Silke Reimer <silke at intevation.de>
 #
 # This program is free software under the GPL (>=v2)
 # Read the file COPYING coming with Thuban for details.
@@ -14,6 +15,8 @@
 
 from wxPython.wx import *
 
+from locale import getlocale
+
 from Thuban import _
 from Thuban.version import versions
 from Thuban.Model.resource import gdal_support_status
@@ -130,10 +133,7 @@
 
 
 def unicodeToLocale(unicodeStr):
-    " Function to convert a unicode object to an object \ in the user's locale encoding"
-
-
-    from locale import getlocale
+    "Function to convert unicode to the user's locale encoding"
 
     return unicodeStr.encode(getlocale()[1])
 





More information about the Thuban-devel mailing list

This site is hosted by Intevation GmbH (Datenschutzerklärung und Impressum | Privacy Policy and Imprint)