Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 0a7b547

Browse files
committed
Fix Python 3.2 portability issue
Python 3.2 doesn't have FileNotFoundError. Replaced to use the base class OSError instead.
1 parent ad400e3 commit 0a7b547

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

mypy/git.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ def have_git() -> bool:
1919
return True
2020
except subprocess.CalledProcessError:
2121
return False
22-
except FileNotFoundError:
22+
except OSError:
2323
return False
2424

2525

0 commit comments

Comments
 (0)