From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from localhost (localhost [127.0.0.1]) by turing.freelists.org (Avenir Technologies Mail Multiplex) with ESMTP id 0A87C2C2B2 for ; Mon, 29 Apr 2019 23:05:15 -0400 (EDT) Received: from turing.freelists.org ([127.0.0.1]) by localhost (turing.freelists.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id EOiwdycm1xQJ for ; Mon, 29 Apr 2019 23:05:14 -0400 (EDT) Received: from smtpng2.m.smailru.net (smtpng2.m.smailru.net [94.100.179.3]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by turing.freelists.org (Avenir Technologies Mail Multiplex) with ESMTPS id B14DE2C2B0 for ; Mon, 29 Apr 2019 23:05:14 -0400 (EDT) Received: by smtpng2.m.smailru.net with esmtpa (envelope-from ) id 1hLJ4y-0004Te-Lj for tarantool-patches@freelists.org; Tue, 30 Apr 2019 06:05:12 +0300 Date: Tue, 30 Apr 2019 06:05:02 +0300 From: Alexander Turenko Subject: [tarantool-patches] Re: [PATCH] test: use yaml.safe_load() instead of yaml.load() Message-ID: <20190430030501.ablag4cb66qetq42@tkn_work_nb> References: MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline In-Reply-To: Sender: tarantool-patches-bounce@freelists.org Errors-to: tarantool-patches-bounce@freelists.org Reply-To: tarantool-patches@freelists.org List-Help: List-Unsubscribe: List-software: Ecartis version 1.0.0 List-Id: tarantool-patches List-Subscribe: List-Owner: List-post: List-Archive: To: tarantool-patches@freelists.org Pushed to master, 2.1 and 1.10. WBR, Alexander Turenko. On Tue, Apr 30, 2019 at 06:00:24AM +0300, Alexander Turenko wrote: > The primary reason why this change is needed is that yaml.load() w/o an > explicit loader was banned in Gentoo Linux for recent pyyaml versions; > see [1]. > > We don't use the pyyaml feature that allows to construct a Python object > based on a yaml tag, so safe_load() fit our needs. > > See also related changes in test-run and tarantool-python ([2], [3], [4]). > > [1]: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=79ba924d94cb0cf8559565178414c2a1d687b90c > [2]: https://github.com/tarantool/test-run/commit/38400e91c600677fb661154d00459d660fa9880d > [3]: https://github.com/tarantool/test-run/commit/89808d60eb3b5130e227fc1a7866f2ad5a197bea > [4]: https://github.com/tarantool/tarantool-python/commit/350771d240a18eec188a53e8c696028b41baa13f > --- > > no issue > https://github.com/tarantool/tarantool/tree/Totktonada/python-use-yaml-safe-load