changeset 43480:667f56d73ceb

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
author Augie Fackler <augie@google.com>
date Wed, 06 Nov 2019 15:16:04 -0500
parents 8e89b6e1e0cd
children f5fcf7123a92
files mercurial/scmposix.py
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- 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