The following commit has been merged in the master branch:
commit b4db81008ab6f2ac08924910911c354feae1907f
Author: Akshita Jha <[email protected]>
Date: Fri Jul 24 00:20:43 2015 +0530
Modify blendsmarkdown.py : Remove to_unicode() as Python 3 does not need
encoding
diff --git a/webtools_py3/blendsmarkdown.py b/webtools_py3/blendsmarkdown.py
index 52c0e0c..4baddb0 100644
--- a/webtools_py3/blendsmarkdown.py
+++ b/webtools_py3/blendsmarkdown.py
@@ -66,7 +66,7 @@ def PrepareMarkdownInput(lines):
return ret
def render_longdesc(lines):
- MarkDownInput = to_unicode(PrepareMarkdownInput(lines))
+ MarkDownInput = PrepareMarkdownInput(lines)
global rendering_lib
if rendering_lib == 'rest':
@@ -96,7 +96,7 @@ def MarkupString(string, pkg, elem, lang='en'):
if string == None:
return None
try:
- string = Markup(to_unicode(string))
+ string = Markup(string)
except UnicodeDecodeError as errtxt:
print("----> %s UnicodeDecodeError in %s (lang='%s'): '%s'; ErrTxt:
%s" % \
(elem, pkg, lang, 'debug-string', errtxt),
file=stderr)
--
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