Submitter | phabricator |
---|---|
Date | Nov. 7, 2019, 8:34 a.m. |
Message ID | <0c35ab1f9044fedbf83805f883775bad@localhost.localdomain> |
Download | mbox | patch |
Permalink | /patch/42880/ |
State | Not Applicable |
Headers | show |
Comments
Patch
diff --git a/mercurial/vfs.py b/mercurial/vfs.py --- a/mercurial/vfs.py +++ b/mercurial/vfs.py @@ -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