~duplicity-team/duplicity/0.8-series

« back to all changes in this revision

Viewing changes to duplicity/cached_ops.py

  • Committer: kenneth at loafman
  • Date: 2018-07-23 16:32:30 UTC
  • Revision ID: kenneth@loafman.com-20180723163230-i226wdy5q2zzgfc7
* Fixed unadorned strings to unicode in duplicity/*/*
  - Some fixup due to shifting indenataion not matching PEP8.
  - Substituted for non-ascii char in jottlibbackend.py comment.

Show diffs side-by-side

added added

removed removed

Lines of Context:
18
18
# along with duplicity; if not, write to the Free Software Foundation,
19
19
# Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
20
20
 
21
 
"""Cache-wrapped functions for grp and pwd lookups."""
 
21
u"""Cache-wrapped functions for grp and pwd lookups."""
22
22
 
23
23
import grp
24
24
import pwd
25
25
 
26
26
 
27
27
class CachedCall(object):
28
 
    """Decorator for caching the results of function calls."""
 
28
    u"""Decorator for caching the results of function calls."""
29
29
 
30
30
    def __init__(self, f):
31
31
        self.cache = {}