File tree 3 files changed +2
-20
lines changed
3 files changed +2
-20
lines changed Original file line number Diff line number Diff line change @@ -384,13 +384,13 @@ run_in_thread.
384
384
385
385
A PubSub object adheres to the same encoding semantics as the client
386
386
instance it was created from. Any channel or pattern that's unicode will
387
- be encoded using the charset specified on the client before being sent
387
+ be encoded using the encoding specified on the client before being sent
388
388
to Redis. If the client's decode_responses flag is set the False (the
389
389
default), the 'channel', 'pattern' and 'data' values in message
390
390
dictionaries will be byte strings (str on Python 2, bytes on Python 3).
391
391
If the client's decode_responses is True, then the 'channel', 'pattern'
392
392
and 'data' values will be automatically decoded to unicode strings using
393
- the client's charset .
393
+ the client's encoding .
394
394
395
395
PubSub objects remember what channels and patterns they are subscribed
396
396
to. In the event of a disconnection such as a network error or timeout,
Original file line number Diff line number Diff line change @@ -203,8 +203,6 @@ def __init__(
203
203
unix_socket_path : Optional [str ] = None ,
204
204
encoding : str = "utf-8" ,
205
205
encoding_errors : str = "strict" ,
206
- charset : Optional [str ] = None ,
207
- errors : Optional [str ] = None ,
208
206
decode_responses : bool = False ,
209
207
retry_on_timeout : bool = False ,
210
208
retry_on_error : Optional [List [Type [Exception ]]] = None ,
@@ -256,20 +254,6 @@ def __init__(
256
254
else :
257
255
self ._event_dispatcher = event_dispatcher
258
256
if not connection_pool :
259
- if charset is not None :
260
- warnings .warn (
261
- DeprecationWarning (
262
- '"charset" is deprecated. Use "encoding" instead'
263
- )
264
- )
265
- encoding = charset
266
- if errors is not None :
267
- warnings .warn (
268
- DeprecationWarning (
269
- '"errors" is deprecated. Use "encoding_errors" instead'
270
- )
271
- )
272
- encoding_errors = errors
273
257
if not retry_on_error :
274
258
retry_on_error = []
275
259
if retry_on_timeout is True :
Original file line number Diff line number Diff line change @@ -142,7 +142,6 @@ def parse_cluster_myshardid(resp, **options):
142
142
SLOT_ID = "slot-id"
143
143
144
144
REDIS_ALLOWED_KEYS = (
145
- "charset" ,
146
145
"connection_class" ,
147
146
"connection_pool" ,
148
147
"connection_pool_class" ,
@@ -152,7 +151,6 @@ def parse_cluster_myshardid(resp, **options):
152
151
"decode_responses" ,
153
152
"encoding" ,
154
153
"encoding_errors" ,
155
- "errors" ,
156
154
"host" ,
157
155
"lib_name" ,
158
156
"lib_version" ,
You can’t perform that action at this time.
0 commit comments