remove the syck module, use yaml instead
Signed-off-by: Joerg Jaspert <joerg@debian.org>
import apt_pkg
import daklib.utils, daklib.database
import apt_pkg
import daklib.utils, daklib.database
import daklib.extensions
from daklib.extensions import replace_dak_function
import daklib.extensions
from daklib.extensions import replace_dak_function
sourcefile = file(transpath, 'r')
sourcecontent = sourcefile.read()
try:
sourcefile = file(transpath, 'r')
sourcecontent = sourcefile.read()
try:
- transitions = syck.load(sourcecontent)
- except syck.error, msg:
+ transitions = yaml.load(sourcecontent)
+ except yaml.YAMLError, msg:
# This shouldn't happen, there is a wrapper to edit the file which
# checks it, but we prefer to be safe than ending up rejecting
# everything.
# This shouldn't happen, there is a wrapper to edit the file which
# checks it, but we prefer to be safe than ending up rejecting
# everything.