From c507636eac8b0f28b38faa63d6427c5eb401adf9 Mon Sep 17 00:00:00 2001 From: mikey dagitses Date: Thu, 4 May 2023 21:59:06 +0000 Subject: [PATCH] allow buck to be built at newer version of Python Summary: See #2696 for another example. In Python 3.3 types like `Sequence` were moved to the `collections.abc` submodule. The aforementioned PR fixed runtime issues, but the bin/buck Python bootstrapping script still failed with non-ancient versions of Python. Test Plan: Built and ran buck1 successfully on my machine. --- third-party/py/pathlib/pathlib.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/third-party/py/pathlib/pathlib.py b/third-party/py/pathlib/pathlib.py index 2084addbc62..b25e1e6e03e 100644 --- a/third-party/py/pathlib/pathlib.py +++ b/third-party/py/pathlib/pathlib.py @@ -7,7 +7,7 @@ import re import sys import time -from collections import Sequence +from collections.abc import Sequence from contextlib import contextmanager from errno import EINVAL, ENOENT from operator import attrgetter