diff mercurial/pycompat.py @ 43788:fe73ec69350e

windows: suppress pytype warnings for Windows imports and functions This should allow the modules to not be excluded, and not generate complaints on non Windows platforms. Differential Revision: https://phab.mercurial-scm.org/D7510
author Matt Harbison <matt_harbison@yahoo.com>
date Fri, 22 Nov 2019 23:55:57 -0500
parents 9f70512ae2cf
children 7b14d649af1b
line wrap: on
line diff
--- a/mercurial/pycompat.py	Sat Nov 23 16:54:59 2019 -0800
+++ b/mercurial/pycompat.py	Fri Nov 22 23:55:57 2019 -0500
@@ -99,7 +99,7 @@
         # Otherwise non-ASCII filenames in existing repositories would be
         # corrupted.
         # This must be set once prior to any fsencode/fsdecode calls.
-        sys._enablelegacywindowsfsencoding()
+        sys._enablelegacywindowsfsencoding()  # pytype: disable=module-attr
 
     fsencode = os.fsencode
     fsdecode = os.fsdecode