Message153421
| Author |
dfwc |
| Recipients |
dfwc |
| Date |
2012年02月15日.17:18:29 |
| SpamBayes Score |
0.00012285076 |
| Marked as misclassified |
No |
| Message-id |
<1329326310.67.0.0755107537402.issue14022@psf.upfronthosting.co.za> |
| In-reply-to |
| Content |
in iter_modules there is a loop for fn in os.listdir(path): that can
fail on an OSError exception. here is a patch
try:
for fn in os.listdir(path):
subname = inspect.getmodulename(fn)
if subname=='__init__':
ispkg = True
break
else:
continue # not a package
except OSError as (errno, strerror):
print "%s: %s\n" % (fn, strerror) |
|
History
|
|---|
| Date |
User |
Action |
Args |
| 2012年02月15日 17:18:30 | dfwc | set | recipients:
+ dfwc |
| 2012年02月15日 17:18:30 | dfwc | set | messageid: <1329326310.67.0.0755107537402.issue14022@psf.upfronthosting.co.za> |
| 2012年02月15日 17:18:30 | dfwc | link | issue14022 messages |
| 2012年02月15日 17:18:29 | dfwc | create |
|