diff hgext/win32mbcs.py @ 30647:e995f00a9e9a

py3: replace sys.platform with pycompat.sysplatform (part 2 of 2)
author Pulkit Goyal <7895pulkit@gmail.com>
date Mon, 19 Dec 2016 02:26:41 +0530
parents 7a3e67bfa417
children 176ed32dc159 d74b0cff94a9
line wrap: on
line diff
--- a/hgext/win32mbcs.py	Mon Dec 19 02:15:24 2016 +0530
+++ b/hgext/win32mbcs.py	Mon Dec 19 02:26:41 2016 +0530
@@ -169,7 +169,7 @@
 def extsetup(ui):
     # TODO: decide use of config section for this extension
     if ((not os.path.supports_unicode_filenames) and
-        (sys.platform != 'cygwin')):
+        (pycompat.sysplatform != 'cygwin')):
         ui.warn(_("[win32mbcs] cannot activate on this platform.\n"))
         return
     # determine encoding for filename