569 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
f1975aa380 echoapp_client: [PEP 8] Add space before comment 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
9ebe59b5d7 _abnf, _app, _http, _url: [PEP 8] Fix indents 2016-04-27 13:56:11 +01:00
Allan Lewis
d58e5b1490 test_fuzzingclient.py: Indent with spaces 2016-04-27 13:56:11 +01:00
Allan Lewis
a9cfa61dc3 _core, test_websocket: Remove unused locals 2016-04-27 13:56:11 +01:00
Allan Lewis
3b757ac3e2 ChangeLog, _abnf, _logging: Corect typos 2016-04-27 11:51:34 +01:00
Allan Lewis
c47b0af0ae _core, _handshake: Remove unused imports 2016-04-27 11:42:44 +01:00
Allan Lewis
6d3c23e5da test_websocket: Remove unnecessary backslashes 2016-04-27 11:38:07 +01:00
Allan Lewis
3b73be8736 _utils: Remove unnecessary trailing semicolon 2016-04-27 11:33:52 +01:00
Allan Lewis
75bfea0833 _core.WebSocket.shutdown: Triple-quote docstring 2016-04-27 11:33:24 +01:00
Allan Lewis
e033f2bd0a wsdump: Only catch relevant exceptions 2016-04-27 11:32:46 +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
17cfffbff1 _abnf, _socket: Don't override builtins 2016-04-27 11:28:41 +01:00
Allan Lewis
669096e874 wsdump, _core, _url, _utils: Remove redundant parentheses 2016-04-27 11:25:59 +01:00
Allan Lewis
f0f3cc129b _abnf.ABNF._is_valid_close_status: Make method static 2016-04-27 11:22:53 +01:00
Allan Lewis
a49a3c22df _handshake._get_handshake_headers: Use list literal 2016-04-27 11:21:48 +01:00
Allan Lewis
3f9e8bf9fb _app: Don't use mutable default argument value 2016-04-27 11:19:41 +01:00
Allan Lewis
2e0067117d wsdump, _abnf, _http: Compare to None using in 2016-04-27 11:19:33 +01:00
Allan Lewis
4875da67a0 test_websocket: [Cleanup] Remove unused imports 2016-04-27 11:14:29 +01:00
Allan Lewis
e8cc458f9d test_websocket: [Cleanup] Correct typo 2016-04-27 11:14:22 +01:00
liris
3ca245de52 fixed #246 v0.37.0 2016-04-14 09:27:13 +09:00
liris
fa97b1727f fixed #242 v0.36.0 2016-04-12 09:00:35 +09:00
liris
f015008f90 update document and version no. 2016-04-12 08:46:32 +09:00
liris
9473bd6e12 Merge pull request #241 from mkonecny/master
implement ping/pong timeout
2016-04-12 08:42:50 +09:00
liris
109991b5c3 Merge pull request #235 from mpnowacki/master
added support for using custom connection class
2016-04-12 08:39:30 +09:00
liris
77921b271f Merge pull request #238 from jlaire/named-logger
Named logger
2016-04-12 08:37:02 +09:00
liris
4b4cedc5ee Merge pull request #243 from anshulguleria/corrects-highlighting
Corrects the syntax highlight code
2016-04-12 08:35:11 +09:00
anshulguleria
0770bb2d15 Corrects the syntax highlight code 2016-03-30 17:38:32 +05:30
Martin Konecny
a2e215f363 implement ping/pong timeout 2016-03-21 18:18:42 -04:00
Johannes Laire
33b653bb85 Use 'websocket' as logger name 2016-02-19 16:54:35 +01:00
Johannes Laire
d26bee79f4 Fix typos in docstring 2016-02-19 16:54:20 +01:00
michal.nowacki
aee731426c added support for using custom connection class 2016-02-10 11:56:53 +01:00
liris
0065c354c5 Merge pull request #233 from JustAMan/master
Handle more built-in exceptions that are not derived from Exception
2016-02-04 16:23:22 +09:00
liris
f482a63b10 Merge pull request #232 from anshulguleria/syntax-highlighting
Adds python syntax highlighting to the python sample code in readme
2016-02-04 16:22:18 +09:00
Vasily
1b9bd39492 Propagate SystemExit exception further 2016-01-18 17:11:07 +03:00
Vasily
03428bcf38 Handle more built-in exceptions that are not derived from Exception in WebSocketApp.run_forever() 2016-01-15 16:58:40 +03:00
anshulguleria
e99627c4bd Adds python syntax highlighting to the python sample code in readme 2016-01-10 20:19:01 +05:30
liris
b614606b35 fixed #227 2016-01-04 17:04:42 +09:00
liris
f1db0f8d7c add ChangeLog 2016-01-04 15:19:18 +09:00
liris
e73d27805d Merge branch 'ilysym-init-with-socket' 2016-01-04 15:18:45 +09:00
liris
78ce8024a6 Merge branch 'init-with-socket' of https://github.com/ilysym/websocket-client into ilysym-init-with-socket 2016-01-04 15:18:39 +09:00
liris
df5519a37e add ChangeLog 2016-01-04 15:17:51 +09:00
liris
ca11f6a30e Merge branch 'CptPicard-fix-nonstring-exception-message-bug' 2016-01-04 15:17:01 +09:00
liris
d424405039 Merge branch 'fix-nonstring-exception-message-bug' of https://github.com/CptPicard/websocket-client into CptPicard-fix-nonstring-exception-message-bug 2016-01-04 15:16:55 +09:00
liris
2b03303349 Merge branch 'oklahomer-fix_argspec' 2016-01-04 15:15:32 +09:00
liris
d7ba7024c7 Merge branch 'fix_argspec' of https://github.com/oklahomer/websocket-client into oklahomer-fix_argspec 2016-01-04 15:15:20 +09:00
liris
558a8f0ccf Merge branch 'master' of https://github.com/liris/websocket-client 2016-01-04 15:13:49 +09:00