<feed xmlns='http://www.w3.org/2005/Atom'>
<title>delta/python-packages/redis-py.git/tests/test_encoding.py, branch ROLE</title>
<subtitle>github.com: andymccurdy/redis-py.git
</subtitle>
<link rel='alternate' type='text/html' href='http://91.123.203.49/cgit/delta/python-packages/redis-py.git/'/>
<entry>
<title>Added black and isort (#1734)</title>
<updated>2021-11-30T16:05:51+00:00</updated>
<author>
<name>Anas</name>
<email>anas.el.amraoui@live.com</email>
</author>
<published>2021-11-30T16:05:51+00:00</published>
<link rel='alternate' type='text/html' href='http://91.123.203.49/cgit/delta/python-packages/redis-py.git/commit/?id=b94e230b17d08e6c89d134e933c706256b79bc4a'/>
<id>b94e230b17d08e6c89d134e933c706256b79bc4a</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
<entry>
<title>Remove support for end-of-life Python 2.7 (#1318)</title>
<updated>2020-08-06T22:15:02+00:00</updated>
<author>
<name>Jon Dufresne</name>
<email>jon.dufresne@gmail.com</email>
</author>
<published>2020-08-06T22:15:02+00:00</published>
<link rel='alternate' type='text/html' href='http://91.123.203.49/cgit/delta/python-packages/redis-py.git/commit/?id=8c5a41baf0bd2a1388d601e5b49d06b91997ccb8'/>
<id>8c5a41baf0bd2a1388d601e5b49d06b91997ccb8</id>
<content type='text'>
Remove support for end-of-life Python 2.7

Python 2.7 is end of life. It is no longer receiving bug fixes,
including for security issues. Python 2.7 went EOL on 2020-01-01. For
additional details on support Python versions, see:

Supported: https://devguide.python.org/#status-of-python-branches
EOL: https://devguide.python.org/devcycle/#end-of-life-branches

Removing support for EOL Pythons will reduce testing and maintenance
resources while allowing the library to move towards a modern Python 3
style. Python 2.7 users can continue to use the previous version of
redis-py.

Was able to simplify the code:

- Removed redis._compat module
- Removed __future__ imports
- Removed object from class definition (all classes are new style)
- Removed long (Python 3 unified numeric types)
- Removed deprecated __nonzero__ method
- Use simpler Python 3 super() syntax
- Use unified OSError exception
- Use yield from syntax

Co-authored-by: Andy McCurdy &lt;andy@andymccurdy.com&gt;</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Remove support for end-of-life Python 2.7

Python 2.7 is end of life. It is no longer receiving bug fixes,
including for security issues. Python 2.7 went EOL on 2020-01-01. For
additional details on support Python versions, see:

Supported: https://devguide.python.org/#status-of-python-branches
EOL: https://devguide.python.org/devcycle/#end-of-life-branches

Removing support for EOL Pythons will reduce testing and maintenance
resources while allowing the library to move towards a modern Python 3
style. Python 2.7 users can continue to use the previous version of
redis-py.

Was able to simplify the code:

- Removed redis._compat module
- Removed __future__ imports
- Removed object from class definition (all classes are new style)
- Removed long (Python 3 unified numeric types)
- Removed deprecated __nonzero__ method
- Use simpler Python 3 super() syntax
- Use unified OSError exception
- Use yield from syntax

Co-authored-by: Andy McCurdy &lt;andy@andymccurdy.com&gt;</pre>
</div>
</content>
</entry>
<entry>
<title>Support memoryview encoding/decoding as a no-op</title>
<updated>2020-02-24T23:38:05+00:00</updated>
<author>
<name>Cody-G</name>
<email>codyjgreer@gmail.com</email>
</author>
<published>2020-02-08T21:19:17+00:00</published>
<link rel='alternate' type='text/html' href='http://91.123.203.49/cgit/delta/python-packages/redis-py.git/commit/?id=3310fe415a4c3a6ec9a9fcaf9a9fa24808219429'/>
<id>3310fe415a4c3a6ec9a9fcaf9a9fa24808219429</id>
<content type='text'>
This allows memoryview instances to be passed to Redis command args that
expect strings or bytes. The memoryview instance is sent directly to
the socket such that there are zero copies made of the underlying data
during command packing.

Fixes #1265
Fixes #1285
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
This allows memoryview instances to be passed to Redis command args that
expect strings or bytes. The memoryview instance is sent directly to
the socket such that there are zero copies made of the underlying data
during command packing.

Fixes #1265
Fixes #1285
</pre>
</div>
</content>
</entry>
<entry>
<title>Pass encoding_errors setting to hiredis (&gt;=1.0.0) (#1162)</title>
<updated>2019-05-29T22:41:56+00:00</updated>
<author>
<name>Brian Candler</name>
<email>b.candler@pobox.com</email>
</author>
<published>2019-05-29T22:41:56+00:00</published>
<link rel='alternate' type='text/html' href='http://91.123.203.49/cgit/delta/python-packages/redis-py.git/commit/?id=0eac02d209932742cfb0dfc667e5e9707bfedd46'/>
<id>0eac02d209932742cfb0dfc667e5e9707bfedd46</id>
<content type='text'>
Pass encoding_errors setting to hiredis (&gt;=1.0.0).

Fixes #1161</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Pass encoding_errors setting to hiredis (&gt;=1.0.0).

Fixes #1161</pre>
</div>
</content>
</entry>
<entry>
<title>remove Token class in favor of bytestring</title>
<updated>2019-05-28T22:42:47+00:00</updated>
<author>
<name>Andy McCurdy</name>
<email>andy@andymccurdy.com</email>
</author>
<published>2019-05-28T22:42:47+00:00</published>
<link rel='alternate' type='text/html' href='http://91.123.203.49/cgit/delta/python-packages/redis-py.git/commit/?id=0f26aad99f55d2ead9936ac57a97693c0b501fcf'/>
<id>0f26aad99f55d2ead9936ac57a97693c0b501fcf</id>
<content type='text'>
The Token class was needed when supporting Python 2.6. Now that we've
dropped support for 2.6, we don't need it anymore.

Fixes #1066
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
The Token class was needed when supporting Python 2.6. Now that we've
dropped support for 2.6, we don't need it anymore.

Fixes #1066
</pre>
</div>
</content>
</entry>
<entry>
<title>only accept bytes, strings, ints, longs and floats as user input</title>
<updated>2018-11-14T22:53:40+00:00</updated>
<author>
<name>Andy McCurdy</name>
<email>andy@andymccurdy.com</email>
</author>
<published>2018-11-14T22:53:40+00:00</published>
<link rel='alternate' type='text/html' href='http://91.123.203.49/cgit/delta/python-packages/redis-py.git/commit/?id=40025ae073f7b376b496a54491fbb30d964dcb24'/>
<id>40025ae073f7b376b496a54491fbb30d964dcb24</id>
<content type='text'>
All input sent to Redis is coerced into bytes. This includes key names and
values. Prior to this change, redis-py made an effort to cooerce all input
into strings by calling str() (Python 3) or unicode() (Python 2). While this
works for a handful of types like ints, longs and floats, it fails for other
types like bools ('True' or 'False'), None ('None') and many user defined
types.

Starting with redis-py version 3.0, sending input of any other type is
considered an error an a DataError exception will be raised.

Fixes #471
Fixes #472
Fixes #321
Fixes #190
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
All input sent to Redis is coerced into bytes. This includes key names and
values. Prior to this change, redis-py made an effort to cooerce all input
into strings by calling str() (Python 3) or unicode() (Python 2). While this
works for a handful of types like ints, longs and floats, it fails for other
types like bools ('True' or 'False'), None ('None') and many user defined
types.

Starting with redis-py version 3.0, sending input of any other type is
considered an error an a DataError exception will be raised.

Fixes #471
Fixes #472
Fixes #321
Fixes #190
</pre>
</div>
</content>
</entry>
<entry>
<title>Use unicode literals throughout project</title>
<updated>2018-11-03T10:21:49+00:00</updated>
<author>
<name>Jon Dufresne</name>
<email>jon.dufresne@gmail.com</email>
</author>
<published>2017-11-02T13:30:07+00:00</published>
<link rel='alternate' type='text/html' href='http://91.123.203.49/cgit/delta/python-packages/redis-py.git/commit/?id=5089cc275e6077a070017587001c22e490995d47'/>
<id>5089cc275e6077a070017587001c22e490995d47</id>
<content type='text'>
Remove workaround for handling unicode with older Pythons.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Remove workaround for handling unicode with older Pythons.
</pre>
</div>
</content>
</entry>
<entry>
<title>Remove from __future__ import with_statement</title>
<updated>2018-11-03T10:21:49+00:00</updated>
<author>
<name>Jon Dufresne</name>
<email>jon.dufresne@gmail.com</email>
</author>
<published>2017-11-02T13:30:07+00:00</published>
<link rel='alternate' type='text/html' href='http://91.123.203.49/cgit/delta/python-packages/redis-py.git/commit/?id=882f74a7b257e4eeee4afba2c1ddeb0173cb3cdd'/>
<id>882f74a7b257e4eeee4afba2c1ddeb0173cb3cdd</id>
<content type='text'>
All supported Python versions support the with statement.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
All supported Python versions support the with statement.
</pre>
</div>
</content>
</entry>
<entry>
<title>avoid calling pytest fixtures directly since that's frowned upon</title>
<updated>2018-11-01T05:56:45+00:00</updated>
<author>
<name>Andy McCurdy</name>
<email>andy@andymccurdy.com</email>
</author>
<published>2018-11-01T05:56:45+00:00</published>
<link rel='alternate' type='text/html' href='http://91.123.203.49/cgit/delta/python-packages/redis-py.git/commit/?id=84efaa73e71d83c8e2ff86c9e0d7fade851cf1e8'/>
<id>84efaa73e71d83c8e2ff86c9e0d7fade851cf1e8</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
<entry>
<title>Fix warning during test</title>
<updated>2017-01-28T19:09:42+00:00</updated>
<author>
<name>Jon Dufresne</name>
<email>jon.dufresne@gmail.com</email>
</author>
<published>2017-01-28T19:09:42+00:00</published>
<link rel='alternate' type='text/html' href='http://91.123.203.49/cgit/delta/python-packages/redis-py.git/commit/?id=610ea96a05e54b900609e03f796b4bfd43b20239'/>
<id>610ea96a05e54b900609e03f796b4bfd43b20239</id>
<content type='text'>
Fixes warning output:

DeprecationWarning: "charset" is deprecated. Use "encoding" instead
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Fixes warning output:

DeprecationWarning: "charset" is deprecated. Use "encoding" instead
</pre>
</div>
</content>
</entry>
</feed>
