Python - xlutils "filter.py" syntax error - print repr(self.name)
<p>I developing a script that will eventually use a pdfminer package to convert .pdfs to .txt files.  In preparing the the subject files for use, I am having to import copy from xlutils.copy</p>

<p>from xlutils.copy import copy, I run into a syntax error from one of the copy.py associated python files (<em>line 699</em> of xlutils\filter.py</p>

<pre><code>def method(self,name,*args):
    if self.name:
        print repr(self.name),
    print "%s:%r"%(name,args)
</code></pre>

<p>the syntax error cursor points to the area of print repr(self.name) between the "r" and the left parenthesis.  I discovered <strong>repr</strong> is not defined until line 825 of the filter.py script. </p>

<p>What could be the exact cause of the syntax error and is their any way to correct the script such that filter.py does not trip up the xlutils.copy command?</p>