#4 Merged
Repository
denis denis
Branch
stable
Repository
Jeffrey Jeffrey
Branch
stable

remove re-encoding str objects as utf-8

Author
  1. Denis Bilenko avatarDenis Bilenko
Reviewers
Description

If 'str' object is passed to send(), let's assume it's utf-8. Otherwise application that produce utf-8 by construction are taxed with unnecessary re-encoding.

This also fixes the exception type: Exception -> TypeError

And adds common base class for websockets where common methods are held.

Final patch also fixes pep8 (except of 80-columns rule which is lame)

Comments (0)

Tip: Filter by directory path e.g. /media app.js to search for public/media/app.js.
Tip: Use camelCasing e.g. ProjME to search for ProjectModifiedEvent.java.
Tip: Filter by extension type e.g. /repo .js to search for all .js files in the /repo directory.
Tip: Separate your search with spaces e.g. /ssh pom.xml to search for src/ssh/pom.xml.
Tip: Use ↑ and ↓ arrow keys to navigate and return to view the file.
Tip: You can also navigate files with Ctrl+j (next) and Ctrl+k (previous) and view the file with Ctrl+o.
Tip: You can also navigate files with Alt+j (next) and Alt+k (previous) and view the file with Alt+o.