]> git.ipfire.org Git - thirdparty/psycopg.git/commitdiff
Merge pull request #660 from dlax/async-to-sync 657/head
authorDaniele Varrazzo <daniele.varrazzo@gmail.com>
Fri, 13 Oct 2023 22:49:51 +0000 (23:49 +0100)
committerGitHub <noreply@github.com>
Fri, 13 Oct 2023 22:49:51 +0000 (23:49 +0100)
improvements to tools/async_to_sync.py

1  2 
tools/async_to_sync.py

index 71d37a150bcb051992c20ad2698e18e3dd8dbaf9,444999b4afc3313d5dacc8cbac76934f2414994f..741c21861f216ca0935d9ba9d3af58390c3309d4
@@@ -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", "")