<html>
    <head>
      <base href="https://bugs.freedesktop.org/">
    </head>
    <body><span class="vcard"><a class="email" href="mailto:tomeu@tomeuvizoso.net" title="Tomeu Vizoso <tomeu@tomeuvizoso.net>"> <span class="fn">Tomeu Vizoso</span></a>
</span> changed
          <a class="bz_bug_link 
          bz_status_NEW "
   title="NEW - AttributeError: 'tuple' object has no attribute 'major'"
   href="https://bugs.freedesktop.org/show_bug.cgi?id=107566">bug 107566</a>
          <br>
             <table border="1" cellspacing="0" cellpadding="8">
          <tr>
            <th>What</th>
            <th>Removed</th>
            <th>Added</th>
          </tr>

         <tr>
           <td style="text-align:right;">CC</td>
           <td>
                
           </td>
           <td>tomeu@tomeuvizoso.net
           </td>
         </tr></table>
      <p>
        <div>
            <b><a class="bz_bug_link 
          bz_status_NEW "
   title="NEW - AttributeError: 'tuple' object has no attribute 'major'"
   href="https://bugs.freedesktop.org/show_bug.cgi?id=107566#c1">Comment # 1</a>
              on <a class="bz_bug_link 
          bz_status_NEW "
   title="NEW - AttributeError: 'tuple' object has no attribute 'major'"
   href="https://bugs.freedesktop.org/show_bug.cgi?id=107566">bug 107566</a>
              from <span class="vcard"><a class="email" href="mailto:tomeu@tomeuvizoso.net" title="Tomeu Vizoso <tomeu@tomeuvizoso.net>"> <span class="fn">Tomeu Vizoso</span></a>
</span></b>
        <pre>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)</pre>
        </div>
      </p>


      <hr>
      <span>You are receiving this mail because:</span>

      <ul>
          <li>You are the QA Contact for the bug.</li>
          <li>You are the assignee for the bug.</li>
      </ul>
    </body>
</html>