<br><br><div class="gmail_quote">On 24 September 2012 03:26, Gregory Lund <span dir="ltr"><<a href="mailto:gnj091405@gmail.com" target="_blank">gnj091405@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div class="im">><br>
> but a better way to do that is:<br>
> if item.endswith('.zip')<br>
><br>
>>         x = zipfile.Zipfile(item,'r')<br>
>>         x.extractall()<br>
>>         x.close()<br>
>><br>
</div>ok, I used that (above)<br>
typed below:<br>
<br>
for item in zipContents:<br>
<div class="im">    if item.endswith('.zip'):<br>
        x = zipfile.Zipfile(item,'r')<br>
        x.extractall()<br>
        x.close()<br>
<br>
</div>but now get a   "  x = zipfile.Zipfile(item,'r')<br>
AttributeError: 'module' object has no attribute 'Zipfile' "<br></blockquote><div><br></div><div>Capital F. ZipFile not Zipfile.</div><div> </div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">

<br>
error<br>
<br>
grrrrr, this is going to send me to the funny farm!<br>
<br>
greg<br>
</blockquote></div><br>