Discussion:
[Bitpim-devel] Bug in com_sanyomedia.py
Roger Binns
2004-12-24 17:24:22 UTC
Permalink
I have been running pychecker and it has found a bug on
line 225 of com_sanyomedia.py. The code looks like this:

try:
os.makedirs(`idir`)
except:
pass

The os module isn't imported so that code won't work. However
it doesn't make sense anyway since it doesn't take into account
the current directory or anything else. idir is just a number.

Perhaps it should be calling the brew mkdirs function instead
(which also doesn't raise exceptions so the try isn't needed).

Roger

Loading...