[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:27:19 UTC 2018


https://bugs.freedesktop.org/show_bug.cgi?id=107566

Tomeu Vizoso <tomeu at tomeuvizoso.net> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |tomeu at tomeuvizoso.net

--- Comment #1 from Tomeu Vizoso <tomeu at tomeuvizoso.net> ---
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)

-- 
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/73fa44ab/attachment.html>


More information about the mesa-dev mailing list