Commit cf0a9b8a by rfkelly0

set max size for SpooledTemporaryFile

parent 777a11d3
...@@ -15,7 +15,7 @@ implementations of this interface such as: ...@@ -15,7 +15,7 @@ implementations of this interface such as:
""" """
__version__ = "0.2.0a10" __version__ = "0.2.0a11"
__author__ = "Will McGugan (will@willmcgugan.com)" __author__ = "Will McGugan (will@willmcgugan.com)"
# 'base' imports * from 'path' and 'errors', so their # 'base' imports * from 'path' and 'errors', so their
......
...@@ -75,7 +75,7 @@ class RemoteFileBuffer(object): ...@@ -75,7 +75,7 @@ class RemoteFileBuffer(object):
optional argument 'rfile' is provided, it must be a read()-able optional argument 'rfile' is provided, it must be a read()-able
object or a string containing the initial file contents. object or a string containing the initial file contents.
""" """
self.file = SpooledTemporyFile(max_size=self.max_size_in_memory) self.file = SpooledTemporaryFile(max_size=self.max_size_in_memory)
self.fs = fs self.fs = fs
self.path = path self.path = path
self.mode = mode self.mode = mode
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment