2ei
cfebb9df05
Remove unused imports ( #4397 )
2024-06-21 00:06:40 +02:00
udf
3b428f97a9
Fix ordering of nested entities
2023-12-07 18:25:11 +02:00
udf
abeb8c4d8d
Prioritise closing tags when sorting tags
2023-12-07 18:09:02 +02:00
Alexander Goryushkin
ad19987cd6
Fixed sorting of markup entities with the same offsets ( #4201 )
2023-09-14 18:52:04 +02:00
Lonami
16ed9614f9
Change html.unparse logic to mimic markdown's
...
It was overcomplicated and had some subtle bugs.
Closes #4133 .
2023-06-17 13:11:14 +02:00
Lonami Exo
1f42e6e32f
del_surrogate for HTML inline URLs
...
Closes #3693 .
2022-09-20 18:18:26 +02:00
Shubham Kumar
935be9dd6e
Fix some MD parsing of inline URLs ( #3920 )
2022-09-09 21:46:06 +02:00
Qwerty-Space
d56b27e570
Fix several minor typos ( #1603 )
2020-10-18 21:11:59 +02:00
Lonami Exo
1c3e7dda01
Avoid explicitly passing the loop to asyncio
...
This behaviour is deprecated and will be removed in future versions
of Python. Technically, it could be considered a bug (invalid usage
causing different behaviour from the expected one), and in practice
it should not break much code (because .get_event_loop() would likely
be the same event loop anyway).
2020-07-25 18:39:35 +02:00
Lonami Exo
3d32e16235
Fix within surrogate detection
2020-02-20 10:53:28 +01:00
Lonami Exo
9f73c35621
Fix unparsing of entities that are together
2020-02-20 09:43:37 +01:00
Lonami Exo
d196c89825
Fix unparsing malformed entities, bump v1.10.10
2019-12-30 10:19:29 +01:00
Lonami Exo
f3111f93b2
Fix unparsing text with malformed message entities
2019-12-19 15:48:59 +01:00
painor
38b929b973
Fix several typos ( #1328 )
2019-11-10 11:29:43 +01:00
Lonami Exo
c0e4d6c8b6
Slightly simplify BinaryReader
...
There was no need for the BufferedReader, since everything
is already in memory. Further, the stream parameter was never
used, so it was also unnecessary. The check for None when
reading length was also unnecessary, since we could just pass
-1 to begin with.
2019-08-07 10:33:46 +02:00
Lonami Exo
b719a2a432
Remove unwanted html.unescape() call
2019-08-04 10:09:23 +02:00
binares
2b277dd558
Fix (de)serialization of negative timestamps ( #1241 )
2019-08-01 18:47:38 +02:00
Lonami Exo
05b770a93f
Fix directly nested markdown entities
2019-07-06 12:55:44 +02:00
Lonami Exo
2d0fc8356f
Fix markdown parsing for pre blocks and entity after entity
2019-07-05 20:31:43 +02:00
Lonami Exo
4e80e21ba1
Update markdown parser to support nested entities
2019-06-24 13:48:29 +02:00
Tulir Asokan
8b28f4ffbf
Add support for unparsing nested entities into HTML ( #1209 )
2019-06-24 12:28:14 +02:00
Lonami Exo
962949008f
Add new message entities to markdown/html parsers
2019-06-23 21:35:33 +02:00
Lonami Exo
baa8970bb6
Fix handling message payloads that are too large
2019-03-06 18:08:51 +01:00
Tulir Asokan
f271316d7d
Make logger fully configurable ( #1087 )
2019-01-11 15:52:30 +01:00
Lonami Exo
229969192a
Fix UnicodeDecodeError with malformed input on unparse text
2019-01-01 20:31:39 +01:00
Lonami Exo
aaee092a46
Locally strip outgoing message text respecting entities
2018-11-19 10:15:56 +01:00
Lonami Exo
d854babf22
Make HTML parser yield the correct offset and lengths
2018-11-19 09:20:13 +01:00
Lonami Exo
207d5ebdcb
Avoid packing more than 1024 messages in a single container
2018-11-19 08:29:44 +01:00
Lonami Exo
7dece209a0
Cancel tasks on reconnect instead of awaiting them
...
This prevents us from locking forever on any task that doesn't
rely on cancellation tokens, in this case, Connection.recv()'s
_recv_queue.get() would never complete after the server closed
the connection.
Additionally, working with cancellation tokens in asyncio is
somewhat annoying to do.
Last but not least removing the Connection._disconnected future
avoids the need to use its state (if an exception was set it
should be retrieved) to prevent asyncio from complaining, which
it was before.
2018-10-21 16:20:05 +02:00
Lonami Exo
0686ec4440
Implement after_msg_id back
2018-10-19 16:53:50 +02:00
Lonami Exo
9dc4009152
Handle the right errors
2018-10-19 14:41:50 +02:00
Lonami Exo
e2fe3eb503
Use new broken MessagePacker
2018-10-19 13:24:52 +02:00
Lonami Exo
0cc8bca098
Delete TcpClient
2018-10-05 13:26:44 +02:00
painor
340f5614b5
Add name mention formatting to HTML and Markdown ( #1019 )
2018-10-04 15:56:32 +02:00
Lonami Exo
92c9bb12b7
Use asyncio.open_connection in the TcpClient
...
(cherry picked from commit 573fed1f512831cd9790130cc878655fef2fde98)
2018-09-19 19:03:36 +02:00
Lonami Exo
a688c8a4ce
Fix exception ignored warnings and invalid state #935
2018-08-04 15:06:11 +02:00
Lonami Exo
200a4e47b8
Clarify some strings
2018-07-25 02:21:44 +02:00
Lonami Exo
aa67f107af
Temporarily use blocking SSL sockets on connect
2018-07-19 20:56:45 +02:00
Lonami Exo
4027ac6a6f
Wrap socket with SSL after connecting
...
See https://github.com/Anorov/PySocks/issues/29
2018-07-19 20:38:53 +02:00
Lonami Exo
38c65adf35
Set timezone info when reading datetimes
2018-07-12 00:30:57 +02:00
Lonami
128053750d
Implement HTTP(S) mode ( closes #112 ) ( #883 )
2018-07-08 17:45:49 +02:00
Lonami Exo
53c660d0dc
Don't remove reader if fd == -1
2018-06-30 13:26:28 +02:00
Lonami Exo
d64eb7ea2b
Avoid cyclic imports on older Python versions
2018-06-29 11:04:42 +02:00
Lonami Exo
c8ee0bdca9
Fix socket may be None when closing twice
2018-06-20 17:59:11 +02:00
Lonami Exo
4e9a84c3b5
Remove underscore from module names
2018-06-18 21:02:42 +02:00
Lonami Exo
145d4b7105
Remove socket fd from the loop reader upon closing
2018-06-17 15:48:26 +02:00
Lonami Exo
226c35ff8f
Pump up default timeout from 5 to 10s
2018-06-17 11:46:56 +02:00
Lonami Exo
0f14f3b16a
Support custom event loops
2018-06-14 19:35:12 +02:00
Lonami Exo
df1dfdf8ea
Remove some redundant except
2018-06-14 16:13:46 +02:00
Lonami Exo
c9ea1bafc0
Apply @andr-04 asyncio commits to TcpClient
2018-06-14 16:08:23 +02:00