Class to create a temporary directory.
Definition at line 111 of file validate_patch.py.
| def validate_patch.TempDir.__init__ |
( |
|
self, |
|
|
|
suffix = "", |
|
|
|
prefix = "tmp", |
|
|
|
dir = None, |
|
|
|
keep_var = "KEEPTEMPDIR" |
|
) |
| |
Constructor.
'keep_var' is used to define which environment variable will prevent the
deletion of the directory.
The other arguments are the same as tempfile.mkdtemp.
Definition at line 113 of file validate_patch.py.
114 def __init__(self, suffix="", prefix="tmp", dir=None, keep_var="KEEPTEMPDIR"):
117 'keep_var' is used to define which environment variable will prevent the
118 deletion of the directory.
120 The other arguments are the same as tempfile.mkdtemp.
123 self.
_name = mkdtemp(suffix, prefix, dir)