Recent files is attempting to parse diff files as config files
- From: louis <louis obsidian com au>
- To: meld-list <meld-list gnome org>
- Subject: Recent files is attempting to parse diff files as config files
- Date: Tue, 18 Dec 2012 15:40:09 +1100
As below, code is current git HEAD
A workaround is to just try / except the config.read(path), but I'm guessing there's some issue with the logic further up. Once it starts dealing with GTK recent file objects it's a little out of my depth.
[louis@PsykarBox meld]$ meld
Traceback (most recent call last):
File "/home/louis/bin/packages/meld/bin/meld", line 164, in <module>
main()
File "/home/louis/bin/packages/meld/bin/meld", line 146, in main
import meld.meldapp
File "/home/louis/bin/packages/meld/meld/meldapp.py", line 187, in <module>
app = MeldApp()
File "/home/louis/bin/packages/meld/meld/meldapp.py", line 56, in __init__
self.recent_comparisons = recent.RecentFiles(sys.argv[0])
File "/home/louis/bin/packages/meld/meld/recent.py", line 69, in __init__
self._update_recent_files()
File "/home/louis/bin/packages/meld/meld/recent.py", line 180, in _update_recent_files
comp = self.read(uri)
File "/home/louis/bin/packages/meld/meld/recent.py", line 122, in read
config.read(path)
File "/usr/lib/python2.7/ConfigParser.py", line 305, in read
self._read(fp, filename)
File "/usr/lib/python2.7/ConfigParser.py", line 512, in _read
raise MissingSectionHeaderError(fpname, lineno, line)
ConfigParser.MissingSectionHeaderError: File contains no section headers.
file: <filename>, line: 1
'"""\n'
<filename> is a file which was in a recently opened VC directory diff.
`items` in _filter_items() is a full list of all files which were in this diff, in 'file:///<filename>' format.
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]