jncramp / iniparse

Automatically exported from code.google.com/p/iniparse
Other
0 stars 0 forks source link

AttributeError: 'NoneType' object has no attribute 'extend' #11

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
1. Ubuntu 8.04.2
2. Python 2.5.2
3. iniparse-0.3.0
4. videocache-1.9.tar.gz
5. while installing videocache iniparse errors out...

# python setup.py install
Traceback (most recent call last):
  File "setup.py", line 395, in <module>
    main(root)
  File "setup.py", line 333, in main
    mainconf =  readMainConfig(readStartupConfig(config_file, root))
  File "/home/dmonty/Download/videocache-1.9/videocache/config.py", line
710, in readStartupConfig
    parser.readfp(confpp_obj)
  File "/usr/lib/python2.5/site-packages/iniparse/compat.py", line 115, in
readfp
    self.data._readfp(fp)
  File "/usr/lib/python2.5/site-packages/iniparse/ini.py", line 581, in _readfp
    cur_option.extend(pending_lines)
AttributeError: 'NoneType' object has no attribute 'extend'

Original issue reported on code.google.com by montgome...@gmail.com on 28 Feb 2009 at 3:39

GoogleCodeExporter commented 8 years ago
Could you provide the INI file which leads to this error?

Original comment by psobe...@gmail.com on 28 Feb 2009 at 4:08

GoogleCodeExporter commented 8 years ago
I believe this is caused by empty lines before the first option in a section.  
I've
been able to reproduce it.

Original comment by psobe...@gmail.com on 28 Feb 2009 at 4:18

GoogleCodeExporter commented 8 years ago
Fixed in revision 115.

Original comment by psobe...@gmail.com on 28 Feb 2009 at 10:02