Skip to content
Permalink
Browse files

py3: AddonManager-macro: use unicode

  • Loading branch information...
looooo committed Jan 5, 2019
1 parent 2c3268f commit ab1f4c442d443adae106a2ea1ed877f33db86154
Showing with 2 additions and 2 deletions.
  1. +2 −2 src/Mod/AddonManager/addonmanager_macro.py
@@ -120,11 +120,11 @@ def fill_details_from_wiki(self, url):
data = u2.read(block)
if not data:
break
if sys.version_info.major >= 3 and isinstance(data, bytes):
data = data.decode('utf-8')
response += data
if response:
code = response
if sys.version_info.major >= 3 and isinstance(code, bytes):
code = code.decode('utf-8')
u2.close()
if not code:
code = re.findall('<pre>(.*?)<\/pre>', p.replace('\n', '--endl--'))

0 comments on commit ab1f4c4

Please sign in to comment.
You can’t perform that action at this time.