Patchwork D7280: scmposix: another suppression on IOError subscripting

login
register
mail settings
Submitter phabricator
Date Nov. 7, 2019, 8:33 a.m.
Message ID <4d19c74d093e3e63c4a870561d54c0a1@localhost.localdomain>
Download mbox | patch
Permalink /patch/42875/
State Not Applicable
Headers show

Comments

phabricator - Nov. 7, 2019, 8:33 a.m.
Closed by commit rHG667f56d73ceb: scmposix: another suppression on IOError subscripting (authored by durin42).
This revision was automatically updated to reflect the committed changes.

REPOSITORY
  rHG Mercurial

CHANGES SINCE LAST UPDATE
  https://phab.mercurial-scm.org/D7280?vs=17650&id=17694

CHANGES SINCE LAST ACTION
  https://phab.mercurial-scm.org/D7280/new/

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

AFFECTED FILES
  mercurial/scmposix.py

CHANGE DETAILS




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

Patch

diff --git a/mercurial/scmposix.py b/mercurial/scmposix.py
--- a/mercurial/scmposix.py
+++ b/mercurial/scmposix.py
@@ -90,7 +90,7 @@ 
         except ValueError:
             pass
         except IOError as e:
-            if e[0] == errno.EINVAL:
+            if e[0] == errno.EINVAL:  # pytype: disable=unsupported-operands
                 pass
             else:
                 raise