Use function for empty string

Missed this when making changes for multi-file support
This commit is contained in:
Erik Johnson 2018-06-16 10:38:04 -05:00
parent cb2620ad2b
commit 5e6b539770
No known key found for this signature in database
GPG Key ID: 5E5583C437808F3F

View File

@ -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)