16 Commits

Author SHA1 Message Date
Allan Lewis
525fcfc0fb wsdump, test_fuzzingclient, websocket.*, test_websocket: Organise imports
Previously, because of the multiple instances of `from foo import *`, names were
imported from modules that had themselves imported them, instead of from the
place of definition. This commit therefore does the following:

- Declares `__all__` in every module that imports anything, so that
`from foo import *` is sane.
- Sorts the imports based on conventions, similar to the output of `isort`.
- Places all conditional imports after unconditional imports, except where that
isn't valid.
- Imports local names from the modules where they are defined, except when
importing the package itself.
2016-04-27 15:00:56 +01:00
Allan Lewis
9f138c94e7 websocket.*: [PEP 8] Use conventional line-length limit
Line length is set to 80 characters; tests are excluded.
2016-04-27 13:56:11 +01:00
Allan Lewis
c5afde8d77 wsdump, websocket.*: [PEP 8] Use conventional vertical spacing 2016-04-27 13:56:11 +01:00
Allan Lewis
953d469280 wsdump, examples, setup, _abnf, _http, _utils: [PEP 8] Fix spacing 2016-04-27 13:56:11 +01:00
Allan Lewis
3b73be8736 _utils: Remove unnecessary trailing semicolon 2016-04-27 11:33:52 +01:00
Allan Lewis
32728cb8d1 _utils.NoLock.__exit__: Use standard parameter names
In any case, `type` is a builtin.
2016-04-27 11:29:55 +01:00
Allan Lewis
669096e874 wsdump, _core, _url, _utils: Remove redundant parentheses 2016-04-27 11:25:59 +01:00
Jakub Wilk
645e9322d4 fix typos 2016-01-03 20:39:45 +01:00
Achille Roussel
f34c297091 use wsaccel if available 2015-07-10 11:55:05 -07:00
liris
dcf4eb6ef3 - fixed #190 2015-06-24 11:49:18 +09:00
John Vandenberg
306c4cb57d Fix #180: Avoid deprecated BaseException.message 2015-05-05 15:12:34 +10:00
Hiroki Ohtani
2f71915faa add "__all__" 2015-03-19 14:03:19 +09:00
liris
bf0baf26ff refactoring.,, 2015-03-13 12:17:58 +09:00
Robert Schweikert
7a9a6aff5a - Update license text and source code to reflect propoer address for FSF 2015-02-08 08:14:25 -05:00
liris
b6e7f71474 refs #117
better utf-8 support.
2014-10-15 10:53:39 +09:00
liris
6f71e8ad63 - fixed #92
- lock send method for multithread programing.
2014-06-23 11:52:07 +09:00