scmposix: another suppression on IOError subscripting
authorAugie Fackler <augie@google.com>
Wed, 06 Nov 2019 15:16:04 -0500
changeset 43480 667f56d73ceb
parent 43479 8e89b6e1e0cd
child 43481 f5fcf7123a92
scmposix: another suppression on IOError subscripting As before, this will clear up when we move to Python 3-only. Differential Revision: https://phab.mercurial-scm.org/D7280
mercurial/scmposix.py
--- a/mercurial/scmposix.py	Wed Nov 06 15:15:42 2019 -0500
+++ b/mercurial/scmposix.py	Wed Nov 06 15:16:04 2019 -0500
@@ -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