Skip to content
Browse files

use mkdtemp to create cache directory to avoid clashes from multiple …

…suds users
  • Loading branch information...
1 parent 4f5326e commit dda43702cd91ede1ab04673ae98038354fb5f13d @htj committed
Showing with 2 additions and 2 deletions.
  1. +2 −2 suds/cache.py
View
4 suds/cache.py
@@ -20,7 +20,7 @@
import os
import suds
-from tempfile import gettempdir as tmp
+from tempfile import mkdtemp
from suds.transport import *
from suds.sax.parser import Parser
from suds.sax.element import Element
@@ -138,7 +138,7 @@ def __init__(self, location=None, **duration):
@type duration: {unit:value}
"""
if location is None:
- location = os.path.join(tmp(), 'suds')
+ location = mkdtemp(prefix='suds_')
self.location = location
self.duration = (None, 0)
self.setduration(**duration)

0 comments on commit dda4370

Please sign in to comment.
Something went wrong with that request. Please try again.