Patchwork D7285: vfs: more attribute suppressions

login
register
mail settings
Submitter phabricator
Date Nov. 6, 2019, 10:59 p.m.
Message ID <differential-rev-PHID-DREV-nqnv3fq4k27xfdmyvner-req@mercurial-scm.org>
Download mbox | patch
Permalink /patch/42836/
State Superseded
Headers show

Comments

phabricator - Nov. 6, 2019, 10:59 p.m.
durin42 created this revision.
Herald added a subscriber: mercurial-devel.
Herald added a reviewer: hg-reviewers.

REPOSITORY
  rHG Mercurial

REVISION DETAIL
  https://phab.mercurial-scm.org/D7285

AFFECTED FILES
  mercurial/vfs.py

CHANGE DETAILS




To: durin42, #hg-reviewers
Cc: mercurial-devel

Patch

diff --git a/mercurial/vfs.py b/mercurial/vfs.py
--- a/mercurial/vfs.py
+++ b/mercurial/vfs.py
@@ -486,7 +486,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 '
@@ -494,7 +496,9 @@ 
                     )
                 )
 
-            fp = delayclosedfile(fp, self._backgroundfilecloser)
+            fp = delayclosedfile(
+                fp, self._backgroundfilecloser
+            )  # pytype: disable=attribute-error
 
         return fp