From e2afc41e6028502904aa457892fbcb839436f819 Mon Sep 17 00:00:00 2001
From: Augustin Zidek <augustinzidek@google.com>
Date: Mon, 11 Nov 2024 18:13:14 +0000
Subject: [PATCH] Make fetch_databases compatible with Python 3.6

PiperOrigin-RevId: 695389383
---
 fetch_databases.py | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/fetch_databases.py b/fetch_databases.py
index c777a37..28726ea 100644
--- a/fetch_databases.py
+++ b/fetch_databases.py
@@ -15,7 +15,6 @@ them. Make sure both are installed on your system before running this script.
 """
 
 import argparse
-from collections.abc import Sequence
 import concurrent.futures
 import functools
 import os
@@ -63,7 +62,8 @@ def download_and_decompress(
       check=True,
       stdout=subprocess.PIPE,
       stderr=subprocess.PIPE,
-      text=True,
+      # Same as text=True in Python 3.7+, used for backwards compatibility.
+      universal_newlines=True,
   )
   print(
       f'FINISHED downloading {filename} from {bucket_path} to'
@@ -81,7 +81,7 @@ def download_and_decompress(
   print(f'FINISHED decompressing of {filename}')
 
 
-def main(argv: Sequence[str] = ('',)) -> None:
+def main(argv=('',)) -> None:
   """Main function."""
   parser = argparse.ArgumentParser(description='Downloads AlphaFold databases.')
   parser.add_argument(
-- 
GitLab