changeset 34641:bb6544b1c56e

largefiles: do not use platform.system() See the previous patch for the reason. Differential Revision: https://phab.mercurial-scm.org/D1020
author Jun Wu <quark@fb.com>
date Wed, 11 Oct 2017 17:42:35 -0700
parents 68ed3b4f86ef
children a679aa582d8d
files hgext/largefiles/lfutil.py
diffstat 1 files changed, 1 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/hgext/largefiles/lfutil.py	Wed Oct 11 17:38:20 2017 -0700
+++ b/hgext/largefiles/lfutil.py	Wed Oct 11 17:42:35 2017 -0700
@@ -12,7 +12,6 @@
 import copy
 import hashlib
 import os
-import platform
 import stat
 
 from mercurial.i18n import _
@@ -80,7 +79,7 @@
                         encoding.environ.get('APPDATA'))
         if appdata:
             return os.path.join(appdata, longname)
-    elif platform.system() == 'Darwin':
+    elif pycompat.sysplatform == 'darwin':
         home = encoding.environ.get('HOME')
         if home:
             return os.path.join(home, 'Library', 'Caches', longname)