repo: Remove a Python 2 related comment

The EnvironmentError exception was changed to OSError in commit
ae824fb2fc.

Change-Id: I1b4ff742af409ec848131e82900e885c9f089f0c
Reviewed-on: https://gerrit-review.googlesource.com/c/git-repo/+/397757
Reviewed-by: Mike Frysinger <vapier@google.com>
Tested-by: Peter Kjellerstedt <peter.kjellerstedt@axis.com>
Commit-Queue: Peter Kjellerstedt <peter.kjellerstedt@axis.com>
This commit is contained in:
Peter Kjellerstedt 2023-11-03 16:58:41 +01:00 committed by LUCI
parent 4c80921d22
commit 14c61d2c9d

1
repo
View File

@ -1245,7 +1245,6 @@ class Requirements:
with open(path, "rb") as f: with open(path, "rb") as f:
data = f.read() data = f.read()
except OSError: 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. # If we couldn't open the file, assume it's an old source tree.
return None return None