Patchwork D1020: largefiles: do not use platform.system()

login
register
mail settings
Submitter phabricator
Date Oct. 13, 2017, 2:06 p.m.
Message ID <78ec9d3b0bf64e6acfdb7c972a01bc78@localhost.localdomain>
Download mbox | patch
Permalink /patch/24828/
State Not Applicable
Headers show

Comments

phabricator - Oct. 13, 2017, 2:06 p.m.
This revision was automatically updated to reflect the committed changes.
Closed by commit rHGbb6544b1c56e: largefiles: do not use platform.system() (authored by quark, committed by ).

CHANGED PRIOR TO COMMIT
  https://phab.mercurial-scm.org/D1020?vs=2607&id=2679#toc

REPOSITORY
  rHG Mercurial

CHANGES SINCE LAST UPDATE
  https://phab.mercurial-scm.org/D1020?vs=2607&id=2679

REVISION DETAIL
  https://phab.mercurial-scm.org/D1020

AFFECTED FILES
  hgext/largefiles/lfutil.py

CHANGE DETAILS




To: quark, #hg-reviewers, ryanmce
Cc: ryanmce, mercurial-devel

Patch

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 @@ 
 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)