Edward K Ream <[EMAIL PROTECTED]> added the comment:

On Mon, Aug 18, 2008 at 4:15 PM, Antoine Pitrou <[EMAIL PROTECTED]>wrote:

>
> Antoine Pitrou <[EMAIL PROTECTED]> added the comment:
>
> > The same calls to sax read the file correctly on Python 2.5.
>
> What are those calls exactly?

  parser = xml.sax.make_parser()
  parser.setFeature(xml.sax.handler.feature_external_ges,1)
  handler = saxContentHandler(c,inputFileName,silent,inClipboard)
  parser.setContentHandler(handler)
  parser.parse(theFile)

As discussed in http://bugs.python.org/issue3590

theFile is a file opened with 'rb' attributes

Edward

--------------------------------------------------------------------
Edward K. Ream email: [EMAIL PROTECTED]
Leo: http://webpages.charter.net/edreamleo/front.html
--------------------------------------------------------------------

Added file: http://bugs.python.org/file11151/unnamed

_______________________________________
Python tracker <[EMAIL PROTECTED]>
<http://bugs.python.org/issue3590>
_______________________________________
<div dir="ltr"><br><br><div class="gmail_quote">On Mon, Aug 18, 2008 at 4:15 
PM, Antoine Pitrou <span dir="ltr">&lt;<a href="mailto:[EMAIL 
PROTECTED]">[EMAIL PROTECTED]</a>&gt;</span> wrote:<br><blockquote 
class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 
0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
<div class="Ih2E3d"><br>
Antoine Pitrou &lt;<a href="mailto:[EMAIL PROTECTED]">[EMAIL PROTECTED]</a>&gt; 
added the comment:<br>
<br>
</div><div class="Ih2E3d">&gt; The same calls to sax read the file correctly on 
Python 2.5.<br>
<br>
</div>What are those calls exactly?</blockquote><div><br><pre>  parser = 
xml.sax.make_parser()<br>  
parser.setFeature(xml.sax.handler.feature_external_ges,1)<br>  handler = 
saxContentHandler(c,inputFileName,silent,inClipboard)<br>
  parser.setContentHandler(handler)<br>  parser.parse(theFile)<br><br>As 
discussed in <a 
href="http://bugs.python.org/issue3590";>http://bugs.python.org/issue3590</a><br><br>theFile
 is a file opened with &#39;rb&#39; attributes<br>
<br>Edward</pre></div></div>--------------------------------------------------------------------<br>Edward
 K. Ream email: <a href="mailto:[EMAIL PROTECTED]">[EMAIL 
PROTECTED]</a><br>Leo: <a 
href="http://webpages.charter.net/edreamleo/front.html";>http://webpages.charter.net/edreamleo/front.html</a><br>
--------------------------------------------------------------------<br><br>
</div>
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to