Patchwork D7280: scmposix: another suppression on IOError subscripting

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

Comments

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

REVISION SUMMARY
  As before, this will clear up when we move to Python 3-only.

REPOSITORY
  rHG Mercurial

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

AFFECTED FILES
  mercurial/scmposix.py

CHANGE DETAILS




To: durin42, #hg-reviewers
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