Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Use bytes string when writing to dummy file #102

Merged
merged 4 commits into from
May 27, 2017
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions AUTHORS.rst
Original file line number Diff line number Diff line change
Expand Up @@ -20,3 +20,4 @@ Contributors
* Ulrich Petri - https://github.com/ulope
* Tim Tisdall - https://github.com/tisdall
* Eduardo Cardoso - https://github.com/eduardocardoso
* Daniel Widerin - https://github.com/saily
5 changes: 5 additions & 0 deletions HISTORY.rst
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,11 @@
History
=======

0.13.1 (2017-05-27)
-------------------

* [`#101 <https://github.com/mwarkentin/django-watchman/pull/101>`_] Write ``bytes`` to dummy file on storage check to fix an issue in Python 3 (thanks @saily!)

0.13.0 (2017-05-23)
-------------------

Expand Down
2 changes: 1 addition & 1 deletion watchman/__init__.py
Original file line number Diff line number Diff line change
@@ -1 +1 @@
__version__ = '0.13.0'
__version__ = '0.13.1'
2 changes: 1 addition & 1 deletion watchman/checks.py
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ def _check_email():
@check
def _check_storage():
filename = 'django-watchman-{}.txt'.format(uuid.uuid4())
content = 'django-watchman test file'
content = b'django-watchman test file'
path = default_storage.save(filename, ContentFile(content))
default_storage.size(path)
default_storage.open(path).read()
Expand Down