Mercurial > public > mercurial-scm > hg-stable
comparison mercurial/scmposix.py @ 43528: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 | c59eb1560c44 |
children | 9f70512ae2cf |
comparison
equal
deleted
inserted
replaced
43527:8e89b6e1e0cd | 43528:667f56d73ceb |
---|---|
88 if width > 0 and height > 0: | 88 if width > 0 and height > 0: |
89 return width, height | 89 return width, height |
90 except ValueError: | 90 except ValueError: |
91 pass | 91 pass |
92 except IOError as e: | 92 except IOError as e: |
93 if e[0] == errno.EINVAL: | 93 if e[0] == errno.EINVAL: # pytype: disable=unsupported-operands |
94 pass | 94 pass |
95 else: | 95 else: |
96 raise | 96 raise |
97 return 80, 24 | 97 return 80, 24 |