<html>
    <head>
      <base href="https://bugs.freedesktop.org/" />
    </head>
    <body>
      <p>
        <div>
            <b><a class="bz_bug_link 
          bz_status_NEW "
   title="NEW --- - xpyb: damage.py does not work: "NameError: global name 'RECTANGLE' is not defined""
   href="https://bugs.freedesktop.org/show_bug.cgi?id=60502#c5">Comment # 5</a>
              on <a class="bz_bug_link 
          bz_status_NEW "
   title="NEW --- - xpyb: damage.py does not work: "NameError: global name 'RECTANGLE' is not defined""
   href="https://bugs.freedesktop.org/show_bug.cgi?id=60502">bug 60502</a>
              from <span class="vcard"><a class="email" href="mailto:klee@mit.edu" title="Klee Dienes <klee@mit.edu>"> <span class="fn">Klee Dienes</span></a>
</span></b>
        <pre>I ran into the same problem on Debian unstable using python-xcbgen 1.10-1.

I don't have convenient access to an Arch system, but it's hard for me to
understand how it could be working.  Is damage.py on Arch ending up with
references to xproto.RECTANGLE?  Or is RECTANGLE somehow getting loaded by
damage.py?

>From my brief scan, it looked to me like the problem is that py_client.py:_t is
stripping the namespace information from types before emitting.  I was able to
fix the problem for my purposes with the attached patch.  I undoubtedly missed
some cases. I'm happy to clean it up for submission if it turns out I am on the
right track.</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>