Skip to content

Commit bdd4368

Browse files
committed
Satisfy flake8 requirement related to #1000
1 parent 2d47232 commit bdd4368

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

git/repo/fun.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ def is_git_dir(d):
3535
There is the unlikely danger to throw if we see directories which just look like a worktree dir,
3636
but are none."""
3737
if osp.isdir(d):
38-
if (osp.isdir(osp.join(d, 'objects')) or os.environ.has_key('GIT_OBJECT_DIRECTORY')) \
38+
if (osp.isdir(osp.join(d, 'objects')) or 'GIT_OBJECT_DIRECTORY' in os.environ) \
3939
and osp.isdir(osp.join(d, 'refs')):
4040
headref = osp.join(d, 'HEAD')
4141
return osp.isfile(headref) or \

0 commit comments

Comments
 (0)