mercurial/posix.py
changeset 43477 147576a4e6a2
parent 43089 c59eb1560c44
child 43506 9f70512ae2cf
--- a/mercurial/posix.py	Wed Nov 06 14:48:22 2019 -0500
+++ b/mercurial/posix.py	Wed Nov 06 15:03:02 2019 -0500
@@ -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