# HG changeset patch # User Augie Fackler # Date 1573072544 18000 # Node ID da9ecbb1036876f5b56df07070b7d7bfe6566d2b # Parent f2f460cdb4f5590c9b719147f02e721208f048ef vfs: more attribute suppressions Differential Revision: https://phab.mercurial-scm.org/D7285 diff -r f2f460cdb4f5 -r da9ecbb10368 mercurial/vfs.py --- 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