diff hgext/largefiles/lfutil.py @ 34647:dacfcdd8b94e

codemod: use pycompat.isdarwin This is done by: sed -i "s/pycompat\.sysplatform == 'darwin'/pycompat.isdarwin/" **/*.py Plus a manual change to `sslutil.py` which involves indentation change that cannot be done by `sed`. Differential Revision: https://phab.mercurial-scm.org/D1035
author Jun Wu <quark@fb.com>
date Thu, 12 Oct 2017 23:34:34 -0700
parents 238abf65a8ad
children 8cf0a6cd1ed2
line wrap: on
line diff
--- a/hgext/largefiles/lfutil.py	Thu Oct 12 09:04:22 2017 -0700
+++ b/hgext/largefiles/lfutil.py	Thu Oct 12 23:34:34 2017 -0700
@@ -79,7 +79,7 @@
                         encoding.environ.get('APPDATA'))
         if appdata:
             return os.path.join(appdata, longname)
-    elif pycompat.sysplatform == 'darwin':
+    elif pycompat.isdarwin:
         home = encoding.environ.get('HOME')
         if home:
             return os.path.join(home, 'Library', 'Caches', longname)