The following commit has been merged in the master branch:
commit 023140820dbda084aa08417e1d19b70073257af7
Author: Ole Streicher <[email protected]>
Date:   Wed Mar 9 12:10:03 2016 +0100

    Remove unneeded blendsunicode.py als from the py3 dir

diff --git a/webtools_py3/blendsunicode.py b/webtools_py3/blendsunicode.py
deleted file mode 100644
index 302f251..0000000
--- a/webtools_py3/blendsunicode.py
+++ /dev/null
@@ -1,32 +0,0 @@
-#!/usr/bin/python
-# Copyright 2010: Andreas Tille <[email protected]>
-# License: GPL
-
-# Handle UTF-8 encoded strings as well as unicode to cope
-# with different versions of python-debian
-#    python-debian <0.15 returns string; >=0.15 returns unicode
-
-from sys import stderr
-
-def to_unicode(value, encoding='utf-8'):
-    if isinstance(value, str):
-        try:
-            return value.encode('ascii', 'xmlcharrefreplace')
-        except UnicodeDecodeError as err:
-            print("type(value) =", type(value), \
-                           "; isinstance(value, str) =", isinstance(value, 
str), \
-                           ";", err, file=stderr)
-            print(value, file=stderr)
-            return '???'
-    else:
-        return str(value)
-
-# from types import *
-#def my_unicode(str):
-#    if type(str) is StringType:
-#        return unicode(str, 'utf-8')
-#    elif type(str) is UnicodeType:
-#        return str
-#    else:
-#        print >>stderr, "Unknown type of string:", type(str), "\n", str
-#        return '???'

-- 
Static and dynamic websites for Debian Pure Blends

_______________________________________________
Blends-commit mailing list
[email protected]
http://lists.alioth.debian.org/cgi-bin/mailman/listinfo/blends-commit

Reply via email to