Skip to content

Commit

Permalink
made mkstemp() call compatible with mktemp()
Browse files Browse the repository at this point in the history
  • Loading branch information
tpltnt committed Feb 5, 2018
1 parent 3dc056e commit ccc10ed
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/allmydata/node.py
Original file line number Diff line number Diff line change
Expand Up @@ -273,7 +273,7 @@ def init_tempdir(self):
# tempfile.TemporaryFile) to put large request bodies in the given
# directory. Without this, the default temp dir is usually /tmp/,
# which is frequently too small.
test_name = tempfile.mkstemp()
test_name = tempfile.mkstemp()[1]
_assert(os.path.dirname(test_name) == tempdir, test_name, tempdir)

def check_privacy(self):
Expand Down

0 comments on commit ccc10ed

Please sign in to comment.