* dak/transitions.py: use yaml.dump instead of syck.dump, as syck
seems to have a bug in its dump(), causing it to write illegal entries
+ And also do this for load.
2008-05-10 Stephen Gran <sgran@debian.org>
* tools/debianqueued-0.9/debianqueued: First pass at a send_mail
from daklib import database
from daklib import utils
from daklib.dak_exceptions import TransitionsError
-import syck
import yaml
# Globals
sourcecontent = sourcefile.read()
failure = False
try:
- trans = syck.load(sourcecontent)
- except syck.error, msg:
+ trans = yaml.load(sourcecontent)
+ except yaml.YAMLError, exc:
# Someone fucked it up
- print "ERROR: %s" % (msg)
+ print "ERROR: %s" % (exc)
return None
# lets do further validation here