equal
deleted
inserted
replaced
43 """Abstract base class; cannot be instantiated""" |
43 """Abstract base class; cannot be instantiated""" |
44 |
44 |
45 def __init__(self, *args, **kwargs): |
45 def __init__(self, *args, **kwargs): |
46 '''Prevent instantiation; don't call this from subclasses.''' |
46 '''Prevent instantiation; don't call this from subclasses.''' |
47 raise NotImplementedError('attempted instantiating ' + str(type(self))) |
47 raise NotImplementedError('attempted instantiating ' + str(type(self))) |
|
48 |
|
49 def _auditpath(self, path, mode): |
|
50 pass |
48 |
51 |
49 def tryread(self, path): |
52 def tryread(self, path): |
50 '''gracefully return an empty string for missing files''' |
53 '''gracefully return an empty string for missing files''' |
51 try: |
54 try: |
52 return self.read(path) |
55 return self.read(path) |