for unWantedItem in directoryList:
try:
if "hex" in unWantedItem.lower():
if not "bmc" in unWantedItem.lower():
print unWantedItem + " removed!"
directoryList.remove(unWantedItem)
This only seems to loop through once, and removes 1 of 2 occurances from
this list that should be captured. Should "for" keep the list going through
each instance?
Thanks alot.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mail.python.org/pipermail/tutor/attachments/20061026/e2614336/attachment.html
An HTML attachment was scrubbed...
URL: http://mail.python.org/pipermail/tutor/attachments/20061026/e2614336/attachment.html
