From: Joerg Jaspert Date: Sat, 28 Feb 2009 11:21:47 +0000 (+0100) Subject: syck -> yaml X-Git-Url: https://err.no/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=8e63c47aa9120c527f573c82506bc95adc7ade97;p=dak syck -> yaml remove the syck module, use yaml instead Signed-off-by: Joerg Jaspert --- diff --git a/config/debian/extensions.py b/config/debian/extensions.py index 0bb51bd7..83ae3076 100644 --- a/config/debian/extensions.py +++ b/config/debian/extensions.py @@ -2,7 +2,7 @@ import sys, os, textwrap import apt_pkg import daklib.utils, daklib.database -import syck +import yaml import daklib.extensions from daklib.extensions import replace_dak_function @@ -30,8 +30,8 @@ def check_transition(): 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.