mercurial/posix.py
branchstable
changeset 46680 6595e22048fe
parent 45942 89a2afe31e82
child 46819 d4ba4d51f85f
--- a/mercurial/posix.py	Thu Mar 04 17:35:58 2021 +0530
+++ b/mercurial/posix.py	Thu Mar 11 21:21:41 2021 -0500
@@ -321,9 +321,10 @@
                     fullpath = os.path.join(cachedir, target)
                     open(fullpath, b'w').close()
                 except IOError as inst:
-                    if (
-                        inst[0] == errno.EACCES
-                    ):  # pytype: disable=unsupported-operands
+                    # pytype: disable=unsupported-operands
+                    if inst[0] == errno.EACCES:
+                        # pytype: enable=unsupported-operands
+
                         # 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