Mercurial > public > mercurial-scm > hg-stable
diff mercurial/vfs.py @ 43532:da9ecbb10368
vfs: more attribute suppressions
Differential Revision: https://phab.mercurial-scm.org/D7285
author | Augie Fackler <augie@google.com> |
---|---|
date | Wed, 06 Nov 2019 15:35:44 -0500 |
parents | fc19f8ab8199 |
children | 9f70512ae2cf |
line wrap: on
line diff
--- a/mercurial/vfs.py Wed Nov 06 15:35:21 2019 -0500 +++ b/mercurial/vfs.py Wed Nov 06 15:35:44 2019 -0500 @@ -487,7 +487,9 @@ threading.currentThread(), threading._MainThread, # pytype: disable=module-attr ): - if not self._backgroundfilecloser: + if ( + not self._backgroundfilecloser # pytype: disable=attribute-error + ): raise error.Abort( _( b'backgroundclose can only be used when a ' @@ -495,7 +497,10 @@ ) ) - fp = delayclosedfile(fp, self._backgroundfilecloser) + fp = delayclosedfile( + fp, + self._backgroundfilecloser, # pytype: disable=attribute-error + ) return fp