diff options
Diffstat (limited to 'repo')
-rwxr-xr-x | repo | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -627,7 +627,7 @@ def get_gitc_manifest_dir(): | |||
627 | match = re.match("gitc_dir=(?P<gitc_manifest_dir>.*)", line) | 627 | match = re.match("gitc_dir=(?P<gitc_manifest_dir>.*)", line) |
628 | if match: | 628 | if match: |
629 | _gitc_manifest_dir = match.group("gitc_manifest_dir") | 629 | _gitc_manifest_dir = match.group("gitc_manifest_dir") |
630 | except IOError: | 630 | except OSError: |
631 | pass | 631 | pass |
632 | return _gitc_manifest_dir | 632 | return _gitc_manifest_dir |
633 | 633 | ||
@@ -1277,7 +1277,7 @@ class Requirements: | |||
1277 | try: | 1277 | try: |
1278 | with open(path, "rb") as f: | 1278 | with open(path, "rb") as f: |
1279 | data = f.read() | 1279 | data = f.read() |
1280 | except EnvironmentError: | 1280 | except OSError: |
1281 | # NB: EnvironmentError is used for Python 2 & 3 compatibility. | 1281 | # NB: EnvironmentError is used for Python 2 & 3 compatibility. |
1282 | # If we couldn't open the file, assume it's an old source tree. | 1282 | # If we couldn't open the file, assume it's an old source tree. |
1283 | return None | 1283 | return None |