mirror of
https://github.com/valitydev/salt.git
synced 2024-11-08 01:18:58 +00:00
Reset data in Writable
This commit is contained in:
parent
c744aa1caf
commit
8e537ccc9e
@ -60,7 +60,9 @@ def mock_open(data=None):
|
||||
|
||||
|
||||
class Writable(StringIO):
|
||||
data = []
|
||||
def __init__(self):
|
||||
StringIO.__init__(self)
|
||||
self.data = []
|
||||
|
||||
def __exit__(self, exc_type, exc_val, exc_tb):
|
||||
return self
|
||||
|
Loading…
Reference in New Issue
Block a user