Yuxin Wang
|
e2b3834e5f
|
Fix test_terminal.
|
2018-10-13 18:32:00 -04:00 |
|
Yuxin Wang
|
46a9b01d6d
|
No return value for download() method.
|
2018-10-13 18:29:26 -04:00 |
|
Yuxin Wang
|
eb68a99d1a
|
Add catch for RuntimeError.
|
2018-10-13 18:29:16 -04:00 |
|
Yuxin Wang
|
0e952263dd
|
Fix return value.
|
2018-10-13 18:23:33 -04:00 |
|
Yuxin Wang
|
da8c29c8db
|
Fix return value.
|
2018-10-13 18:11:42 -04:00 |
|
Yuxin Wang
|
76b6f8914d
|
Remove double if check.
|
2018-10-13 18:04:11 -04:00 |
|
Yuxin Wang
|
79fd61ae92
|
Move open_connection out of try-block.
|
2018-10-13 18:04:04 -04:00 |
|
Yuxin Wang
|
5496669277
|
Return nothing for server.start() method.
|
2018-10-13 17:47:58 -04:00 |
|
Yuxin Wang
|
d427b6f61c
|
Wrap test_connect_refused code in pytest.raises environment.
|
2018-10-13 17:35:25 -04:00 |
|
Yuxin Wang
|
6d6c8b19a5
|
Raise exceptions in server.start().
|
2018-10-13 17:34:05 -04:00 |
|
Yuxin Wang
|
1e8f628fe0
|
Log other exceptions.
|
2018-10-13 17:33:48 -04:00 |
|
Yuxin Wang
|
36d7121be0
|
Fill message parameter of DownloadIncompleteError.
|
2018-10-13 17:14:27 -04:00 |
|
Yuxin Wang
|
b3b24e4a49
|
Catch RuntimeError for write_message.
|
2018-10-13 17:13:17 -04:00 |
|
Yuxin Wang
|
821af1587d
|
Add more notes.
|
2018-10-13 17:13:06 -04:00 |
|
Yuxin Wang
|
854b15a0c7
|
Make notes clearer.
|
2018-10-13 17:12:11 -04:00 |
|
Yuxin Wang
|
6c22b59fd8
|
Raise exceptions in download.
|
2018-10-13 17:10:36 -04:00 |
|
Yuxin Wang
|
95f08e8c78
|
Pretty print hints for set_delay.
|
2018-10-13 16:49:27 -04:00 |
|
Yuxin Wang
|
3183183a27
|
Add more tests for list_file and publish.
|
2018-10-13 16:49:12 -04:00 |
|
Yuxin Wang
|
de85d9e541
|
Raise exceptions in list_files method.
|
2018-10-13 16:48:58 -04:00 |
|
Yuxin Wang
|
534bba6f49
|
Import everything from core module.
|
2018-10-13 16:48:12 -04:00 |
|
Yuxin Wang
|
e0e2783811
|
Return nothing in disconnect method, merge _reset method.
|
2018-10-13 16:43:26 -04:00 |
|
Yuxin Wang
|
0c469a651c
|
Fix typo.
|
2018-10-13 16:42:11 -04:00 |
|
Yuxin Wang
|
67ca6d2966
|
Raise exceptions in connect method.
|
2018-10-13 16:40:38 -04:00 |
|
Yuxin Wang
|
ebfb782d27
|
Raise exception in publish method instead of return error code.
|
2018-10-13 16:32:56 -04:00 |
|
Yuxin Wang
|
241e5c8ef6
|
Import all exceptions.
|
2018-10-13 16:26:38 -04:00 |
|
Yuxin Wang
|
7bf2d407db
|
Add new types of exception.
|
2018-10-13 16:26:22 -04:00 |
|
Yuxin Wang
|
78ab7b62ff
|
Import all exceptions.
|
2018-10-13 15:35:53 -04:00 |
|
Yuxin Wang
|
5b4956ec94
|
Merge branch 'extract-download-manager', use download manager to handle exceptions, making the interface clean.
|
2018-10-13 15:21:47 -04:00 |
|
Yuxin Wang
|
3582d78700
|
Add custom DownloadIncompleteError.
|
2018-10-13 15:16:41 -04:00 |
|
Yuxin Wang
|
b94757c8a0
|
Add catch for RuntimeError.
|
2018-10-13 15:12:29 -04:00 |
|
Yuxin Wang
|
13118e1036
|
Put process code into try block.
|
2018-10-13 15:12:16 -04:00 |
|
Yuxin Wang
|
c36f5ee0d2
|
Exceptions should be handled in subclasses.
|
2018-10-13 15:03:15 -04:00 |
|
Yuxin Wang
|
2277d1bd11
|
Add file to cleanup before running the actual operation.
|
2018-10-13 15:01:12 -04:00 |
|
Yuxin Wang
|
3561f0f051
|
Add except for RuntimeError.
|
2018-10-13 14:58:33 -04:00 |
|
Yuxin Wang
|
1114f5470d
|
Remove duplicate request.
|
2018-10-13 14:58:23 -04:00 |
|
Yuxin Wang
|
78923aac1f
|
Pop from head.
|
2018-10-13 14:51:35 -04:00 |
|
Yuxin Wang
|
4fb9911b26
|
pop from the rarest chunk.
|
2018-10-13 14:39:49 -04:00 |
|
Yuxin Wang
|
58638c8d6f
|
Add get_progress method for reporthook.
|
2018-10-13 14:34:39 -04:00 |
|
Yuxin Wang
|
841b630eb8
|
Fix typo.
|
2018-10-13 14:34:28 -04:00 |
|
Yuxin Wang
|
79798727d2
|
Store fileinfo.
|
2018-10-13 14:34:21 -04:00 |
|
Yuxin Wang
|
6f839e3cdd
|
Fix typo.
|
2018-10-13 14:25:29 -04:00 |
|
Yuxin Wang
|
8bbdd189e6
|
Fix typo.
|
2018-10-13 14:25:06 -04:00 |
|
Yuxin Wang
|
c69097bfd2
|
Remove extra line.
|
2018-10-13 14:24:24 -04:00 |
|
Yuxin Wang
|
380e50fe56
|
Fix update_peer_rtt, add some notes.
|
2018-10-13 14:23:45 -04:00 |
|
Yuxin Wang
|
ba616d2928
|
Use items() to iterate over dict.
|
2018-10-13 14:01:04 -04:00 |
|
Yuxin Wang
|
d22e7635dd
|
Add notes to explain how download works.
|
2018-10-13 13:59:51 -04:00 |
|
Yuxin Wang
|
20a9b391ae
|
Rename argument to exclude.
|
2018-10-13 13:47:07 -04:00 |
|
Yuxin Wang
|
84ad29467c
|
Update chunkinfo without the disconnected peer.
|
2018-10-13 13:46:36 -04:00 |
|
Yuxin Wang
|
516d14f9ae
|
Add note.
|
2018-10-13 13:45:00 -04:00 |
|
Yuxin Wang
|
07637719af
|
Unpack rtt in _peers variable.
|
2018-10-13 13:42:37 -04:00 |
|