~duplicity-team/duplicity/0.7-series

« back to all changes in this revision

Viewing changes to duplicity/tempdir.py

  • Committer: Kenneth Loafman
  • Date: 2014-12-12 14:39:54 UTC
  • Revision ID: kenneth@loafman.com-20141212143954-wyln65yd1ynzsrlx
* Source formatted, using PyDev, all source files to fix some easily fixed
  PEP8 issues. Use ignore space when comparing against previous versions.

Show diffs side-by-side

added added

removed removed

Lines of Context:
55
55
    _defaultLock.acquire()
56
56
    try:
57
57
        if _defaultInstance is None or _defaultInstance.dir() is None:
58
 
            _defaultInstance = TemporaryDirectory(temproot = globals.temproot)
 
58
            _defaultInstance = TemporaryDirectory(temproot=globals.temproot)
59
59
        return _defaultInstance
60
60
    finally:
61
61
        _defaultLock.release()
106
106
    well. The impact should however be limited to the removal of an
107
107
    'attackers' file.
108
108
    """
109
 
    def __init__(self, temproot = None):
 
109
    def __init__(self, temproot=None):
110
110
        """
111
111
        Create a new TemporaryDirectory backed by a unique and
112
112
        securely created file system directory.