From 8e63c47aa9120c527f573c82506bc95adc7ade97 Mon Sep 17 00:00:00 2001 From: Joerg Jaspert Date: Sat, 28 Feb 2009 12:21:47 +0100 Subject: [PATCH] syck -> yaml remove the syck module, use yaml instead Signed-off-by: Joerg Jaspert --- config/debian/extensions.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) 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. -- 2.39.5