<feed xmlns='http://www.w3.org/2005/Atom'>
<title>delta/python-packages/pexpect.git/tests/test_screen.py, branch asyncio_utf8_issue</title>
<subtitle>github.com: pexpect/pexpect.git
</subtitle>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/python-packages/pexpect.git/'/>
<entry>
<title>Some changes based on reviewing the code</title>
<updated>2014-08-05T01:08:10+00:00</updated>
<author>
<name>Thomas Kluyver</name>
<email>takowl@gmail.com</email>
</author>
<published>2014-08-05T01:08:10+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/python-packages/pexpect.git/commit/?id=d42a81179666a924b406c67d73a9472f088f8ada'/>
<id>d42a81179666a924b406c67d73a9472f088f8ada</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
<entry>
<title>Fix problems found in review.</title>
<updated>2014-08-04T05:08:16+00:00</updated>
<author>
<name>David O'Shea</name>
<email>doshea@doshea-centos-x86-64.adl.quantum.com</email>
</author>
<published>2014-08-04T05:08:16+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/python-packages/pexpect.git/commit/?id=cf3ad0db373029270477b80ef78a13f9d2f30488'/>
<id>cf3ad0db373029270477b80ef78a13f9d2f30488</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
<entry>
<title>Don't define __bytes__(), and don't define __unicode__() on Python 3.</title>
<updated>2014-08-01T07:57:13+00:00</updated>
<author>
<name>David O'Shea</name>
<email>doshea@doshea-centos-x86-64.adl.quantum.com</email>
</author>
<published>2014-08-01T07:40:58+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/python-packages/pexpect.git/commit/?id=a4b8165da2a7f356e3a12b091727e33e6fcc0d2c'/>
<id>a4b8165da2a7f356e3a12b091727e33e6fcc0d2c</id>
<content type='text'>
The previous attempt to add unicode support tried to make Python 2 and
3 behave in the same way apart from __str__().  This commit makes the
modules, and the tests, provide only __str__() on Python 3 and both
__str__() and __unicode__() on Python 2.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
The previous attempt to add unicode support tried to make Python 2 and
3 behave in the same way apart from __str__().  This commit makes the
modules, and the tests, provide only __str__() on Python 3 and both
__str__() and __unicode__() on Python 2.
</pre>
</div>
</content>
</entry>
<entry>
<title>Issue #84: Unicode support in screen and ANSI.</title>
<updated>2014-07-24T12:39:23+00:00</updated>
<author>
<name>David O'Shea</name>
<email>doshea@doshea-centos-x86-64.adl.quantum.com</email>
</author>
<published>2014-07-08T01:10:27+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/python-packages/pexpect.git/commit/?id=db34b8fed2c21b8b790d2710fde1004d49c8f00e'/>
<id>db34b8fed2c21b8b790d2710fde1004d49c8f00e</id>
<content type='text'>
This commit updates the the screen and ANSI modules to support Unicode
under Python 2.x.  Under Python 3.x, it was already supported because
strings are Unicode by default.  Now, on both Python versions:

- The constructors accept a codec name (defaults to 'latin-1') and a
  scheme for handling encoding/decoding errors (defaults to
  'replace').  The codec may be set to None to inhibit
  encoding/decoding.

- Unicode is now used internally for storing the screen contents.

- Methods that accept input characters will, if passed input of type
  'bytes' (or, under Python 2.x, 'str'), use the specified codec to
  decode the input, otherwise treating it as Unicode.

- Methods that return screen contents now return Unicode, with the
  exception of __str__() under Python 2.x, and __bytes__() in all
  versions of Python, which return the screen contents encoded using
  the specified codec.

These changes are designed to work only with Python 2.6, 2.7, and 3.3
and later, specifically versions that provide both b'' and u'' string
literals.

The check in ANSI for characters being printable is also removed, as
this prevents non-ASCII characters being accepted, which is not
compatible with the goal of adding Unicode support.  This addresses
issue #83.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
This commit updates the the screen and ANSI modules to support Unicode
under Python 2.x.  Under Python 3.x, it was already supported because
strings are Unicode by default.  Now, on both Python versions:

- The constructors accept a codec name (defaults to 'latin-1') and a
  scheme for handling encoding/decoding errors (defaults to
  'replace').  The codec may be set to None to inhibit
  encoding/decoding.

- Unicode is now used internally for storing the screen contents.

- Methods that accept input characters will, if passed input of type
  'bytes' (or, under Python 2.x, 'str'), use the specified codec to
  decode the input, otherwise treating it as Unicode.

- Methods that return screen contents now return Unicode, with the
  exception of __str__() under Python 2.x, and __bytes__() in all
  versions of Python, which return the screen contents encoded using
  the specified codec.

These changes are designed to work only with Python 2.6, 2.7, and 3.3
and later, specifically versions that provide both b'' and u'' string
literals.

The check in ANSI for characters being printable is also removed, as
this prevents non-ASCII characters being accepted, which is not
compatible with the goal of adding Unicode support.  This addresses
issue #83.
</pre>
</div>
</content>
</entry>
<entry>
<title>Fix imports in tests for Python 3</title>
<updated>2014-06-02T03:40:07+00:00</updated>
<author>
<name>Thomas Kluyver</name>
<email>takowl@gmail.com</email>
</author>
<published>2014-06-02T00:51:34+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/python-packages/pexpect.git/commit/?id=8d0e5684a479b93811f8433e672a041f4e0f25d2'/>
<id>8d0e5684a479b93811f8433e672a041f4e0f25d2</id>
<content type='text'>
Closes gh-59
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Closes gh-59
</pre>
</div>
</content>
</entry>
<entry>
<title>Move screen -&gt; pexpect.screen</title>
<updated>2013-09-19T23:53:45+00:00</updated>
<author>
<name>Thomas Kluyver</name>
<email>takowl@gmail.com</email>
</author>
<published>2013-09-19T23:53:06+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/python-packages/pexpect.git/commit/?id=6cbd2552b346beff318893821dc6a3eab9e6aac5'/>
<id>6cbd2552b346beff318893821dc6a3eab9e6aac5</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
<entry>
<title>Moved everything up one directory level.</title>
<updated>2012-10-26T18:19:10+00:00</updated>
<author>
<name>Noah Spurrier</name>
<email>noah@squaretrade.com</email>
</author>
<published>2012-10-26T18:19:10+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/python-packages/pexpect.git/commit/?id=7999ca657997e78febfb3fb89cfcc066d50bf788'/>
<id>7999ca657997e78febfb3fb89cfcc066d50bf788</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
</feed>
