diff options
author | Peter Kjellerstedt <pkj@axis.com> | 2023-11-03 16:58:41 +0100 |
---|---|---|
committer | LUCI <gerrit-scoped@luci-project-accounts.iam.gserviceaccount.com> | 2023-12-14 18:31:51 +0000 |
commit | 14c61d2c9d625f541e715a2480afeb269b6462fc (patch) | |
tree | 385fb4f741af7af4cf61d803482ed17607afb685 | |
parent | 4c80921d22c20a28d531c9e3e8a0ce4433c6509d (diff) | |
download | git-repo-14c61d2c9d625f541e715a2480afeb269b6462fc.tar.gz |
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 <vapier@google.com>
Tested-by: Peter Kjellerstedt <peter.kjellerstedt@axis.com>
Commit-Queue: Peter Kjellerstedt <peter.kjellerstedt@axis.com>
-rwxr-xr-x | repo | 1 |
1 files changed, 0 insertions, 1 deletions
@@ -1245,7 +1245,6 @@ class Requirements: | |||
1245 | with open(path, "rb") as f: | 1245 | with open(path, "rb") as f: |
1246 | data = f.read() | 1246 | data = f.read() |
1247 | except OSError: | 1247 | except OSError: |
1248 | # NB: EnvironmentError is used for Python 2 & 3 compatibility. | ||
1249 | # If we couldn't open the file, assume it's an old source tree. | 1248 | # If we couldn't open the file, assume it's an old source tree. |
1250 | return None | 1249 | return None |
1251 | 1250 | ||