mirror of
https://github.com/tahoe-lafs/tahoe-lafs.git
synced 2025-03-11 06:43:54 +00:00
tempdir should be native-string
This commit is contained in:
parent
6e77eba688
commit
3b3b95838e
@ -28,6 +28,7 @@ import configparser
|
|||||||
from twisted.python import log as twlog
|
from twisted.python import log as twlog
|
||||||
from twisted.application import service
|
from twisted.application import service
|
||||||
from twisted.python.failure import Failure
|
from twisted.python.failure import Failure
|
||||||
|
from twisted.python.compat import nativeString
|
||||||
from foolscap.api import Tub, app_versions
|
from foolscap.api import Tub, app_versions
|
||||||
import foolscap.logging.log
|
import foolscap.logging.log
|
||||||
from allmydata.version_checks import get_package_versions, get_package_versions_string
|
from allmydata.version_checks import get_package_versions, get_package_versions_string
|
||||||
@ -828,7 +829,7 @@ class Node(service.MultiService):
|
|||||||
tempdir = self.config.get_config_path(tempdir_config)
|
tempdir = self.config.get_config_path(tempdir_config)
|
||||||
if not os.path.exists(tempdir):
|
if not os.path.exists(tempdir):
|
||||||
fileutil.make_dirs(tempdir)
|
fileutil.make_dirs(tempdir)
|
||||||
tempfile.tempdir = tempdir
|
tempfile.tempdir = nativeString(tempdir)
|
||||||
# this should cause twisted.web.http (which uses
|
# this should cause twisted.web.http (which uses
|
||||||
# tempfile.TemporaryFile) to put large request bodies in the given
|
# tempfile.TemporaryFile) to put large request bodies in the given
|
||||||
# directory. Without this, the default temp dir is usually /tmp/,
|
# directory. Without this, the default temp dir is usually /tmp/,
|
||||||
|
Loading…
x
Reference in New Issue
Block a user