mirror of https://github.com/pypa/pip
Switch TempDirectory.path to property
This commit is contained in:
parent
ebd286ebec
commit
97ec73881e
|
@ -53,10 +53,15 @@ class TempDirectory(object):
|
|||
if path is None:
|
||||
path = self._create(kind)
|
||||
|
||||
self.path = path
|
||||
self._path = path
|
||||
self.delete = delete
|
||||
self.kind = kind
|
||||
|
||||
@property
|
||||
def path(self):
|
||||
# type: () -> str
|
||||
return self._path
|
||||
|
||||
def __repr__(self):
|
||||
return "<{} {!r}>".format(self.__class__.__name__, self.path)
|
||||
|
||||
|
|
Loading…
Reference in New Issue