mirror of
https://github.com/davidhalter/parso.git
synced 2025-12-07 05:14:29 +08:00
PEP 8
This commit is contained in:
@@ -45,6 +45,7 @@ we generate something similar. See:
|
|||||||
http://docs.python.org/3/library/sys.html#sys.implementation
|
http://docs.python.org/3/library/sys.html#sys.implementation
|
||||||
"""
|
"""
|
||||||
|
|
||||||
|
|
||||||
def _get_default_cache_path():
|
def _get_default_cache_path():
|
||||||
if platform.system().lower() == 'windows':
|
if platform.system().lower() == 'windows':
|
||||||
dir_ = os.path.join(os.getenv('LOCALAPPDATA') or '~', 'Parso', 'Parso')
|
dir_ = os.path.join(os.getenv('LOCALAPPDATA') or '~', 'Parso', 'Parso')
|
||||||
@@ -54,6 +55,7 @@ def _get_default_cache_path():
|
|||||||
dir_ = os.path.join(os.getenv('XDG_CACHE_HOME') or '~/.cache', 'parso')
|
dir_ = os.path.join(os.getenv('XDG_CACHE_HOME') or '~/.cache', 'parso')
|
||||||
return os.path.expanduser(dir_)
|
return os.path.expanduser(dir_)
|
||||||
|
|
||||||
|
|
||||||
_default_cache_path = _get_default_cache_path()
|
_default_cache_path = _get_default_cache_path()
|
||||||
"""
|
"""
|
||||||
The path where the cache is stored.
|
The path where the cache is stored.
|
||||||
|
|||||||
Reference in New Issue
Block a user