[Mesa-dev] [Bug 107566] AttributeError: 'tuple' object has no attribute 'major'
bugzilla-daemon at freedesktop.org
bugzilla-daemon at freedesktop.org
Tue Aug 14 07:33:58 UTC 2018
https://bugs.freedesktop.org/show_bug.cgi?id=107566
--- Comment #2 from Tomeu Vizoso <tomeu at tomeuvizoso.net> ---
(In reply to Tomeu Vizoso from comment #1)
> Workaround:
>
> diff --git a/src/util/xmlpool/gen_xmlpool.py
> b/src/util/xmlpool/gen_xmlpool.py
> index 327709c7f8dd..0d97fbcfcf3f 100644
> --- a/src/util/xmlpool/gen_xmlpool.py
> +++ b/src/util/xmlpool/gen_xmlpool.py
> @@ -140,8 +142,8 @@ def expandMatches (matches, translations, end=None):
>
> # In Python 2, stdout expects encoded byte strings, or else it will
> # encode them with the ascii 'codec'
> - if sys.version_info.major == 2:
> - text = text.encode('utf-8')
> + #if sys.version_info.major == 2:
> + text = text.encode('utf-8')
>
> print(text)
Not really, it's better to just revert "2ee1c86d71be meson: Build with Python
3"
--
You are receiving this mail because:
You are the QA Contact for the bug.
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.freedesktop.org/archives/mesa-dev/attachments/20180814/12cb486c/attachment.html>
More information about the mesa-dev
mailing list