diff options
author | Dan McGee <dan@archlinux.org> | 2010-09-12 12:24:23 -0500 |
---|---|---|
committer | Dan McGee <dan@archlinux.org> | 2010-09-12 12:32:13 -0500 |
commit | 5ca2cea388862a507484e0375edf36972cb389ef (patch) | |
tree | 207b3fc50ce9903fdec9813cc4198f6505135ae8 /news/migrations/0001_initial.py | |
parent | 51fca0c98db75629ff7dd26330ff40211554e6e6 (diff) |
reporead: revamp database parsing code
This needed a little sprucing up as it has grown quite organically over the
life of this script. Make things a bit more pythonic through the use of
iterators rather than collection indexing, and try to generalize the special
cases of things a bit.
Also catch encoding problems early and fail gracefully rather than blow up
the entire package parser. A failed decode of a file should cause us to just
skip it rather than stop the entire parser. Worst case, this leaves that
package out of the web interface.
Signed-off-by: Dan McGee <dan@archlinux.org>
Diffstat (limited to 'news/migrations/0001_initial.py')
0 files changed, 0 insertions, 0 deletions