Comment 19 for bug 1035136

Revision history for this message
Petteri S (petteri-stenius) wrote :

Hello

I don't think this issue was completely fixed. I see this error when I run install_initd with lsb version 4.0-0ubuntu27.2

Traceback (most recent call last):
  File "/usr/lib/lsb/install_initd", line 102, in <module>
    initdutils.save_depends(depends)
  File "/usr/lib/lsb/initdutils.py", line 138, in save_depends
    fh = file(DEPENDS, 'w')
NameError: global name 'file' is not defined

There still exists some references to 'file' in initdutils.py

$ grep -n file\( initdutils.py
54:def scan_initfile(initfile):
99: fh = file(FACILITIES, 'w')
125: independs = RFC822Parser(fileob=file(DEPENDS))
138: fh = file(DEPENDS, 'w')
171: print(scan_initfile('init-fragment'))

Thanks.