Pull requests

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

remove re-encoding str objects as utf-8

Author
  1. Denis 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)

  • Learn about pull requests

Comments (0)