summaryrefslogtreecommitdiffstats
path: root/pym/_emerge/PipeReader.py
Commit message (Collapse)AuthorAgeFilesLines
* PipeReader: support plain fd without file objZac Medico2013-01-031-4/+8
|
* Enable FD_CLOEXEC for non-blocking pipes.Zac Medico2013-01-031-2/+10
|
* PipeReader: unregister in _cancelZac Medico2012-10-181-1/+2
|
* PipeLogger/Reader: remove redundant isAlive()Zac Medico2012-10-181-3/+0
| | | | Parent class AbstractPollTask has equivalent implementation.
* PollScheduler: remove register/unregister methodsZac Medico2012-10-051-2/+2
| | | | | | | These methods were aliases for the EventLoop io_add_watch and source_remove methods. Migrating to the EventLoop method names allows an EventLoop instance to substitute for a PollScheduler inside subclasses of AbstractPollTask.
* Use AbstractPollTask._wait_loop() more.Zac Medico2012-02-081-4/+1
|
* Use PollScheduler iteration method.Zac Medico2012-02-071-4/+3
|
* PollScheduler: glib.io_add_watch() compatibilityZac Medico2012-02-071-0/+4
|
* Fix some warnings found by pylint.Arfrever Frehtes Taifersar Arahesis2011-12-181-1/+1
|
* test_poll: fix array testZac Medico2011-12-161-2/+27
| | | | | Since SpawnProcess no longer uses array, add conditional array support to PipeReader and use that for tests.
* PipeReader: use AbstractPollTask._read_buf()Zac Medico2011-12-161-26/+10
|
* Fix EIO handling for PollSelectAdapter.Zac Medico2011-12-161-2/+7
| | | | | | | | In PipeReader and AbstractPollTask, we have to treat EIO as EOF, in order to terminate the select loop at the correct time when using PollSelectAdapter. This fixes a regression in EIO handling since commits 915348ce34fc499ac295b8f0ffee9f0829803542 adn 30d2d0a9db486c5a70848ad5d27b37a3ec48f271.
* test_poll: test different sizes, and pty tooZac Medico2011-12-151-1/+3
|
* Handle OSError from os.read and loop if needed.Zac Medico2011-12-011-11/+14
| | | | | | Looping fixes EbuildMetadataPhase failures for ebuilds that produce more than 4096 bytes of metadata, broken since commit b432a1b3051d91546649e8f3190675767461d8e8.
* PipeReader: use os.read/writeZac Medico2011-12-011-19/+11
|
* Add some comments, which will allow to easier find code, which should beArfrever Frehtes Taifersar Arahesis2011-08-251-0/+1
| | | | removed when support for older versions of Python is removed.
* python3.2 fixes: use array.tobytes()Zac Medico2011-08-241-1/+5
|
* AsynchronousTask: add _cancel template methodZac Medico2011-03-161-3/+1
|
* AsynchronousTask: always call wait() if cancelledZac Medico2011-03-161-2/+2
| | | | | | This is needed in order to ensure that exit listeners are called. Subclasses call the base class cancel() method in order to inherit the wait() call.
* Remove unuser return values from PollScheduler event handlers.Zac Medico2010-08-151-1/+0
|
* Avoid unnecessary sys.hexversion conditional.Zac Medico2010-08-121-5/+2
|
* EOFError can still be raised by array.fromfile() in Python >=2.6.6 and >=2.7.1.Arfrever Frehtes Taifersar Arahesis2010-08-051-1/+0
|
* Bug #330937: Handle IOError raised by remaining calls to array.fromfile().Arfrever Frehtes Taifersar Arahesis2010-08-051-1/+2
|
* Remove all svn $Id keywords.Zac Medico2010-03-241-1/+0
|
* Use dict.(keys|values|items)() instead of ↵Arfrever Frehtes Taifersar Arahesis2009-09-211-3/+3
| | | | | | | | dict.(iterkeys|itervalues|iteritems)() for compatibility with Python 3. (2to3-3.1 -f dict -nw ${FILES}) svn path=/main/trunk/; revision=14327
* Update imports to import portage.os (with unicode wrappers), and useZac Medico2009-08-111-1/+2
| | | | | | _unicode_encode() and _unicode_decode() where appropriate. svn path=/main/trunk/; revision=13994
* Add/update copyright headers.Zac Medico2009-06-251-0/+4
| | | | svn path=/main/trunk/; revision=13690
* Bug #275047 - Split _emerge/__init__.py into smaller pieces. Thanks toZac Medico2009-06-221-0/+98
Sebastian Mingramm (few) <s.mingramm@gmx.de> for this patch. svn path=/main/trunk/; revision=13663