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

cvs@intevation.de cvs at intevation.de
Wed Aug 11 10:09:47 CEST 2004


Author: silke

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

Modified Files:
	about.py 
Log Message:

Small changes to encoding related stuff to avoid too many and too enhanced
imports of locale



Index: about.py
===================================================================
RCS file: /thubanrepository/thuban/Thuban/UI/about.py,v
retrieving revision 1.13
retrieving revision 1.14
diff -u -d -r1.13 -r1.14
--- about.py	10 Aug 2004 19:58:50 -0000	1.13
+++ about.py	11 Aug 2004 08:09:44 -0000	1.14
@@ -14,8 +14,6 @@
 
 from wxPython.wx import *
 
-import locale
-
 from Thuban import _
 from Thuban.version import versions
 from Thuban.Model.resource import gdal_support_status
@@ -135,6 +133,7 @@
     " Function to convert a unicode object to an object \ in the user's locale encoding"
 
 
-    import locale
-    return unicodeStr.encode(locale.getlocale()[1])
+    from locale import getlocale
+
+    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)