blob: 937aa9a47436800f6ba221bcb022ee57530d87c4 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
|
from __future__ import absolute_import, unicode_literals
from contextlib import contextmanager
from .base import AppData, ContentStore
class AppDataDisabled(AppData):
"""No application cache available (most likely as we don't have write permissions)"""
def __init__(self):
pass
error = RuntimeError("no app data folder available, probably no write access to the folder")
def close(self):
"""do nothing"""
def reset(self):
"""do nothing"""
def py_info(self, path):
return ContentStoreNA()
def embed_update_log(self, distribution, for_py_version):
return ContentStoreNA()
def extract(self, path, to_folder):
raise self.error
@contextmanager
def locked(self, path):
"""do nothing"""
yield
@property
def house(self):
raise self.error
def wheel_image(self, for_py_version, name):
raise self.error
@property
def transient(self):
return True
def py_info_clear(self):
""""""
class ContentStoreNA(ContentStore):
def exists(self):
return False
def read(self):
""""""
return None
def write(self, content):
""""""
def remove(self):
""""""
@contextmanager
def locked(self):
yield
|