From 2c90806aa758d2a721f88f7ef692ff1a01b46961 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jakub=20Kadl=C4=8D=C3=ADk?= Date: Wed, 17 Aug 2016 13:35:04 +0200 Subject: [PATCH] Use mkdtemp instead of TemporaryDirectory because the TemporaryDirectory is python3 only --- rida/scm.py | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/rida/scm.py b/rida/scm.py index 99527fa4..72c9f369 100644 --- a/rida/scm.py +++ b/rida/scm.py @@ -167,9 +167,8 @@ class SCM(object): return True if rc == 200 else False else: try: - td = tempfile.TemporaryDirectory() - self.checkout(td.name) - td.cleanup() + td = tempfile.mkdtemp() + self.checkout(td) return True except: return False