bernhard: thuban/Thuban __init__.py,1.5,1.6
cvs@intevation.de
cvs at intevation.de
Mon Oct 17 23:31:45 CEST 2005
Author: bernhard
Update of /thubanrepository/thuban/Thuban
In directory doto:/tmp/cvs-serv30787/Thuban
Modified Files:
__init__.py
Log Message:
* Thuban/__init__.py (set_internal_encoding): added a forwards
and backward translation, so that we fail early if the
internal_encoding is bad.
* test/test_stringrepresentation.py: New file, for now testing
that set_internal_coding() is throwing an exception for bad exceptions.
Index: __init__.py
===================================================================
RCS file: /thubanrepository/thuban/Thuban/__init__.py,v
retrieving revision 1.5
retrieving revision 1.6
diff -u -d -r1.5 -r1.6
--- __init__.py 1 Jul 2005 20:49:04 -0000 1.5
+++ __init__.py 17 Oct 2005 21:31:43 -0000 1.6
@@ -120,3 +120,7 @@
"""
global _internal_encoding
_internal_encoding = encoding
+
+ # 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''))
More information about the Thuban-devel
mailing list
This site is hosted by Intevation GmbH (Datenschutzerklärung und Impressum | Privacy Policy and Imprint)