bernhard: thuban/Thuban __init__.py,1.6,1.7

cvs@intevation.de cvs at intevation.de
Wed Oct 19 10:08:31 CEST 2005


Author: bernhard

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

Modified Files:
	__init__.py 
Log Message:
Preserving the internal encoding for the tests. 
This hopefully fixes subsequent tests when runnin all via runtests.py.


Index: __init__.py
===================================================================
RCS file: /thubanrepository/thuban/Thuban/__init__.py,v
retrieving revision 1.6
retrieving revision 1.7
diff -u -d -r1.6 -r1.7
--- __init__.py	17 Oct 2005 21:31:43 -0000	1.6
+++ __init__.py	19 Oct 2005 08:08:29 -0000	1.7
@@ -2,6 +2,7 @@
 # Authors:
 # Bernhard Herzog <bh at intevation.de>
 # Jan-Oliver Wagner <jan at intevation.de>
+# Bernhard Reiter <bernhard at intevation.de>
 #
 # This program is free software under the GPL (>=v2)
 # Read the file COPYING coming with Thuban for details.
@@ -124,3 +125,8 @@
     # and now let us test, if we can go back and forth
     # it is better to complain now than to have runtime problems later
     unicode_from_internal(internal_from_unicode(u''))
+
+def get_internal_encoding():
+    """Return the encoding used for Thuban's internal string representation."""
+    global _internal_encoding
+    return _internal_encoding





More information about the Thuban-devel mailing list

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