D7276: posix: add a pytype suppression
durin42 (Augie Fackler)
phabricator at mercurial-scm.org
Wed Nov 6 18:23:15 EST 2019
durin42 updated this revision to Diff 17667.
REPOSITORY
rHG Mercurial
CHANGES SINCE LAST UPDATE
https://phab.mercurial-scm.org/D7276?vs=17646&id=17667
CHANGES SINCE LAST ACTION
https://phab.mercurial-scm.org/D7276/new/
REVISION DETAIL
https://phab.mercurial-scm.org/D7276
AFFECTED FILES
mercurial/posix.py
CHANGE DETAILS
diff --git a/mercurial/posix.py b/mercurial/posix.py
--- a/mercurial/posix.py
+++ b/mercurial/posix.py
@@ -323,7 +323,10 @@
fullpath = os.path.join(cachedir, target)
open(fullpath, b'w').close()
except IOError as inst:
- if inst[0] == errno.EACCES:
+ if (
+ inst[0] # pytype: disable=unsupported-operands
+ == errno.EACCES
+ ):
# If we can't write to cachedir, just pretend
# that the fs is readonly and by association
# that the fs won't support symlinks. This
To: durin42, #hg-reviewers
Cc: mercurial-devel
More information about the Mercurial-devel
mailing list