[Blends-commit] [SCM] website branch, master, updated. b4db81008ab6f2ac08924910911c354feae1907f
Akshita Jha
akshita-guest at users.alioth.debian.org
Thu Jul 23 18:58:46 UTC 2015
The following commit has been merged in the master branch:
commit b4db81008ab6f2ac08924910911c354feae1907f
Author: Akshita Jha <akshita-guest at users.alioth.debian.org>
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
More information about the Blends-commit
mailing list