aboutsummaryrefslogtreecommitdiff
path: root/wikimarkup.py
diff options
context:
space:
mode:
authorSergey Poznyakoff <gray@gnu.org>2018-07-30 17:11:56 +0300
committerSergey Poznyakoff <gray@gnu.org>2018-07-30 17:11:56 +0300
commit962837ceee4824e37590366ae6e64ba4293b5831 (patch)
tree7a4210aed3b86686ff014c65dc812e57516e1b3a /wikimarkup.py
parent33911cd4ca1a0ef49b836900f21cd2df4e528f93 (diff)
downloadwit-962837ceee4824e37590366ae6e64ba4293b5831.tar.gz
wit-962837ceee4824e37590366ae6e64ba4293b5831.tar.bz2
Fix Python 3 compatibilityHEADmaster
* test.py: Prepend parent dir to the sys.path * wiki2html.py: Use absolute imports * wiki2texi.py: Likewise. * wiki2text.py: Likewise. (url_quote): Import from the appropriate module. * wikimarkup.py: Make sure the object being split is a string.
Diffstat (limited to 'wikimarkup.py')
-rw-r--r--wikimarkup.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/wikimarkup.py b/wikimarkup.py
index 2ef6be1..9371d89 100644
--- a/wikimarkup.py
+++ b/wikimarkup.py
@@ -853,7 +853,7 @@ class WikiMarkup (BaseWikiMarkup):
853 elif kw == 'filename': 853 elif kw == 'filename':
854 self.file = open(keywords[kw]) 854 self.file = open(keywords[kw])
855 elif kw == 'text': 855 elif kw == 'text':
856 self.text = keywords[kw].split("\n") 856 self.text = keywords[kw].decode("utf-8").split("\n")
857 elif kw == 'lang': 857 elif kw == 'lang':
858 self.lang = keywords[kw] 858 self.lang = keywords[kw]
859 elif kw == 'html_base': 859 elif kw == 'html_base':

Return to:

Send suggestions and report system problems to the System administrator.