Added bytes specifier to "Not Found" strings for Python 3 compatibility. #2

Merged
neomanic merged 1 commit from master into master 2016-01-05 15:14:02 -08:00
neomanic commented 2015-10-21 17:09:42 -07:00 (Migrated from github.com)

My Django project under Python 3 was throwing the error below, which only seems to happen with the hard-coded static links, 'favicon.co' in this instance.

[22/Oct/2015 09:51:16] "GET /static/favicon.ico HTTP/1.1" 404 0
Traceback (most recent call last):
  File "/Library/Frameworks/Python.framework/Versions/3.5/lib/python3.5/wsgiref/handlers.py", line 138, in run
    self.finish_response()
  File "/Library/Frameworks/Python.framework/Versions/3.5/lib/python3.5/wsgiref/handlers.py", line 180, in finish_response
    self.write(data)
  File "/Library/Frameworks/Python.framework/Versions/3.5/lib/python3.5/wsgiref/handlers.py", line 266, in write
    "write() argument must be a bytes instance"
AssertionError: write() argument must be a bytes instance
My Django project under Python 3 was throwing the error below, which only seems to happen with the hard-coded static links, 'favicon.co' in this instance. ``` [22/Oct/2015 09:51:16] "GET /static/favicon.ico HTTP/1.1" 404 0 Traceback (most recent call last): File "/Library/Frameworks/Python.framework/Versions/3.5/lib/python3.5/wsgiref/handlers.py", line 138, in run self.finish_response() File "/Library/Frameworks/Python.framework/Versions/3.5/lib/python3.5/wsgiref/handlers.py", line 180, in finish_response self.write(data) File "/Library/Frameworks/Python.framework/Versions/3.5/lib/python3.5/wsgiref/handlers.py", line 266, in write "write() argument must be a bytes instance" AssertionError: write() argument must be a bytes instance ```
ryanmcgrath commented 2016-01-05 15:14:29 -08:00 (Migrated from github.com)

This is merged, however I'm not planning to do a release anytime soon - at least not until I handle some other life things first. Definitely thanks for the bugfix though!

This is merged, however I'm not planning to do a release anytime soon - at least not until I handle some other life things first. Definitely thanks for the bugfix though!
This repository is archived. You cannot comment on pull requests.
No reviewers
No milestone
No project
No assignees
1 participant
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference: code/django-rednoise#2
No description provided.