From 14c61d2c9d625f541e715a2480afeb269b6462fc Mon Sep 17 00:00:00 2001 From: Peter Kjellerstedt Date: Fri, 3 Nov 2023 16:58:41 +0100 Subject: [PATCH] repo: Remove a Python 2 related comment The EnvironmentError exception was changed to OSError in commit ae824fb2fc2770c84cc34c1956e4c76c8c972860. Change-Id: I1b4ff742af409ec848131e82900e885c9f089f0c Reviewed-on: https://gerrit-review.googlesource.com/c/git-repo/+/397757 Reviewed-by: Mike Frysinger Tested-by: Peter Kjellerstedt Commit-Queue: Peter Kjellerstedt --- repo | 1 - 1 file changed, 1 deletion(-) diff --git a/repo b/repo index 2dd9dd90..91bcc5b2 100755 --- a/repo +++ b/repo @@ -1245,7 +1245,6 @@ class Requirements: with open(path, "rb") as f: data = f.read() except OSError: - # NB: EnvironmentError is used for Python 2 & 3 compatibility. # If we couldn't open the file, assume it's an old source tree. return None