# HG changeset patch # User Jun Wu # Date 2017-10-12 00:42:35 # Node ID bb6544b1c56e5eeffda11a7b05754c9eb3666e62 # Parent 68ed3b4f86ef506a0937bdf9e783146c37b09736 largefiles: do not use platform.system() See the previous patch for the reason. Differential Revision: https://phab.mercurial-scm.org/D1020 diff --git a/hgext/largefiles/lfutil.py b/hgext/largefiles/lfutil.py --- a/hgext/largefiles/lfutil.py +++ b/hgext/largefiles/lfutil.py @@ -12,7 +12,6 @@ from __future__ import absolute_import import copy import hashlib import os -import platform import stat from mercurial.i18n import _ @@ -80,7 +79,7 @@ def _usercachedir(ui): 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)