comparison hgext/largefiles/lfutil.py @ 41759:aaad36b88298

cleanup: use () to wrap long lines instead of \ This is a little less brittle, and often helps indentation. In a surprising number of cases the entire cleanup was deleting the \, as the expression was *already* parenthesized in a workable way. Differential Revision: https://phab.mercurial-scm.org/D5993
author Augie Fackler <augie@google.com>
date Wed, 20 Feb 2019 19:28:51 -0500
parents 0531dff73d0b
children 2372284d9457
comparison
equal deleted inserted replaced
41758:15d3facfa40a 41759:aaad36b88298
74 '''Return the location of the "global" largefiles cache.''' 74 '''Return the location of the "global" largefiles cache.'''
75 path = ui.configpath(name, 'usercache') 75 path = ui.configpath(name, 'usercache')
76 if path: 76 if path:
77 return path 77 return path
78 if pycompat.iswindows: 78 if pycompat.iswindows:
79 appdata = encoding.environ.get('LOCALAPPDATA',\ 79 appdata = encoding.environ.get('LOCALAPPDATA',
80 encoding.environ.get('APPDATA')) 80 encoding.environ.get('APPDATA'))
81 if appdata: 81 if appdata:
82 return os.path.join(appdata, name) 82 return os.path.join(appdata, name)
83 elif pycompat.isdarwin: 83 elif pycompat.isdarwin:
84 home = encoding.environ.get('HOME') 84 home = encoding.environ.get('HOME')
85 if home: 85 if home: