From: Daniele Varrazzo Date: Fri, 13 Oct 2023 22:49:51 +0000 (+0100) Subject: Merge pull request #660 from dlax/async-to-sync X-Git-Tag: pool-3.2.0~12^2 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=refs%2Fpull%2F657%2Fhead;p=thirdparty%2Fpsycopg.git Merge pull request #660 from dlax/async-to-sync improvements to tools/async_to_sync.py --- 5e99834ae790b18f14776a9fe60eee72f48096d7 diff --cc tools/async_to_sync.py index 71d37a150,444999b4a..741c21861 --- a/tools/async_to_sync.py +++ b/tools/async_to_sync.py @@@ -69,20 -68,9 +68,20 @@@ logging.basicConfig(level=logging.INFO def main() -> int: opt = parse_cmdline() - if opt.docker: - return run_in_docker() + if opt.container: + return run_in_container(opt.container) + current_ver = ".".join(map(str, sys.version_info[:2])) + if current_ver != PYVER: + logger.warning( + "Expecting output generated by Python %s; you are running %s instead.", + PYVER, + current_ver, + ) + logger.warning( + " You might get spurious changes that will be rejected by the CI linter." + ) + outputs = [] for fpin in opt.inputs: fpout = fpin.parent / fpin.name.replace("_async", "")