This is an automated email from the git hooks/post-receive script. smcv pushed a commit to branch master in repository game-data-packager.
commit 6f48144c93f04a0140e47af8b447866ec66342f5 Author: Simon McVittie <s...@debian.org> Date: Fri Jan 12 10:25:53 2018 +0000 run_command_line: Allow YAML output to be pretty-printed This regressed when I made to_data() pretty-print the members of groups as YAML literals. The SafeDumper object is not actually any more safe than the standard Dumper, but it refuses to dump objects that have a custom YAML representation (even if that representation is in fact one that would be safe to load, and even if the object is a subclass of one with a standard representation) as a conservative way to guarantee that the result will be loadable by the SafeLoader. Signed-off-by: Simon McVittie <s...@debian.org> --- game_data_packager/build.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/game_data_packager/build.py b/game_data_packager/build.py index cbefed6..8aa0b49 100644 --- a/game_data_packager/build.py +++ b/game_data_packager/build.py @@ -1503,9 +1503,9 @@ class PackagingTask(object): def run_command_line(self, args): if logging.getLogger().isEnabledFor(logging.DEBUG): logger.debug('package description:\n%s', - yaml.safe_dump(self.game.to_data(expand=False))) + yaml.dump(self.game.to_data(expand=False))) logger.debug('package description after expansion:\n%s', - yaml.safe_dump(self.game.to_data(expand=True))) + yaml.dump(self.game.to_data(expand=True))) self.verbose = getattr(args, 'verbose', False) -- Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-games/game-data-packager.git _______________________________________________ Pkg-games-commits mailing list Pkg-games-commits@lists.alioth.debian.org http://lists.alioth.debian.org/cgi-bin/mailman/listinfo/pkg-games-commits