diff options
author | Arfrever Frehtes Taifersar Arahesis <Arfrever@Gentoo.Org> | 2010-08-05 16:51:34 +0200 |
---|---|---|
committer | Arfrever Frehtes Taifersar Arahesis <Arfrever@Gentoo.Org> | 2010-08-05 16:51:34 +0200 |
commit | dee1323cd34ed867b16f898f1ea7732af6d235da (patch) | |
tree | 79637e84e6f7e5b7df45e58822ac0901eed72aba /pym | |
parent | Bug #330937: Handle IOError raised by remaining calls to array.fromfile(). (diff) | |
download | portage-multirepo-dee1323cd34ed867b16f898f1ea7732af6d235da.tar.gz portage-multirepo-dee1323cd34ed867b16f898f1ea7732af6d235da.tar.bz2 portage-multirepo-dee1323cd34ed867b16f898f1ea7732af6d235da.zip |
EOFError can still be raised by array.fromfile() in Python >=2.6.6 and >=2.7.1.
Diffstat (limited to 'pym')
-rw-r--r-- | pym/_emerge/PipeReader.py | 1 | ||||
-rw-r--r-- | pym/_emerge/SpawnProcess.py | 2 | ||||
-rw-r--r-- | pym/portage/package/ebuild/doebuild.py | 1 | ||||
-rw-r--r-- | pym/portage/tests/ebuild/test_array_fromfile_eof.py | 1 | ||||
-rw-r--r-- | pym/portage/util/_pty.py | 1 |
5 files changed, 0 insertions, 6 deletions
diff --git a/pym/_emerge/PipeReader.py b/pym/_emerge/PipeReader.py index 2c3495c3..604fbf29 100644 --- a/pym/_emerge/PipeReader.py +++ b/pym/_emerge/PipeReader.py @@ -71,7 +71,6 @@ class PipeReader(AbstractPollTask): buf = array.array('B') try: buf.fromfile(f, self._bufsize) - # EOFError was raised in Python <2.6.6 and <2.7.1. except (EOFError, IOError): pass diff --git a/pym/_emerge/SpawnProcess.py b/pym/_emerge/SpawnProcess.py index 490b111f..51cd04fc 100644 --- a/pym/_emerge/SpawnProcess.py +++ b/pym/_emerge/SpawnProcess.py @@ -148,7 +148,6 @@ class SpawnProcess(SubProcess): buf = array.array('B') try: buf.fromfile(files.process, self._bufsize) - # EOFError was raised in Python <2.6.6 and <2.7.1. except (EOFError, IOError): pass @@ -210,7 +209,6 @@ class SpawnProcess(SubProcess): buf = array.array('B') try: buf.fromfile(self._files.process, self._bufsize) - # EOFError was raised in Python <2.6.6 and <2.7.1. except (EOFError, IOError): pass diff --git a/pym/portage/package/ebuild/doebuild.py b/pym/portage/package/ebuild/doebuild.py index c8ec3fc2..9f4fe2f4 100644 --- a/pym/portage/package/ebuild/doebuild.py +++ b/pym/portage/package/ebuild/doebuild.py @@ -1268,7 +1268,6 @@ def spawn(mystring, mysettings, debug=0, free=0, droppriv=0, sesandbox=0, fakero buf = array.array('B') try: buf.fromfile(f, buffsize) - # EOFError was raised in Python <2.6.6 and <2.7.1. except (EOFError, IOError): pass if not buf: diff --git a/pym/portage/tests/ebuild/test_array_fromfile_eof.py b/pym/portage/tests/ebuild/test_array_fromfile_eof.py index c32a15cb..d8277f27 100644 --- a/pym/portage/tests/ebuild/test_array_fromfile_eof.py +++ b/pym/portage/tests/ebuild/test_array_fromfile_eof.py @@ -28,7 +28,6 @@ class ArrayFromfileEofTestCase(TestCase): a = array.array('B') try: a.fromfile(f, len(input_bytes) + 1) - # EOFError was raised in Python <2.6.6 and <2.7.1. except (EOFError, IOError): # python-3.0 lost data here eof = True diff --git a/pym/portage/util/_pty.py b/pym/portage/util/_pty.py index a4910ec7..877430e9 100644 --- a/pym/portage/util/_pty.py +++ b/pym/portage/util/_pty.py @@ -95,7 +95,6 @@ def _test_pty_eof(): buf = array.array('B') try: buf.fromfile(master_file, 1024) - # EOFError was raised in Python <2.6.6 and <2.7.1. except (EOFError, IOError): eof = True |