mirror of
https://github.com/valitydev/salt.git
synced 2024-11-07 08:58:59 +00:00
Use function for empty string
Missed this when making changes for multi-file support
This commit is contained in:
parent
cb2620ad2b
commit
5e6b539770
@ -263,7 +263,7 @@ def mock_open(mock=None, read_data=''):
|
||||
try:
|
||||
return next(data['filehandle'][filename])
|
||||
except StopIteration:
|
||||
return empty_string
|
||||
return _empty_string(data)
|
||||
|
||||
def _iter_side_effect():
|
||||
filename = _filename(data)
|
||||
|
Loading…
Reference in New Issue
Block a user