Skip to content

Commit

Permalink
Added Python 2 and 3 compatible temp directory utility function
Browse files Browse the repository at this point in the history
  • Loading branch information
rgerkin committed Apr 18, 2019
1 parent 619b6c1 commit 2b046a4
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 0 deletions.
1 change: 1 addition & 0 deletions requirements.txt
Original file line number Diff line number Diff line change
Expand Up @@ -10,3 +10,4 @@ ipykernel
nbformat
gitpython
cerberus>=1.2
backports.tempfile
4 changes: 4 additions & 0 deletions sciunit/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,10 @@
import contextlib
from io import TextIOWrapper, StringIO
from datetime import datetime
try:
from tempfile import TemporaryDirectory
except ImportError:
from backports.tempfile import TemporaryDirectory

import bs4
import nbformat
Expand Down

0 comments on commit 2b046a4

Please sign in to comment.