public inbox for gentoo-commits@lists.gentoo.org
 help / color / mirror / Atom feed
From: "Zac Medico" <zmedico@gentoo.org>
To: gentoo-commits@lists.gentoo.org
Subject: [gentoo-commits] proj/portage:master commit in: pym/portage/tests/process/, pym/portage/util/_async/
Date: Fri, 28 Dec 2012 06:30:22 +0000 (UTC)	[thread overview]
Message-ID: <1356676207.df7f1d3e00a9f0de1c631422b91cac3d074ddc0f.zmedico@gentoo> (raw)

commit:     df7f1d3e00a9f0de1c631422b91cac3d074ddc0f
Author:     Zac Medico <zmedico <AT> gentoo <DOT> org>
AuthorDate: Fri Dec 28 06:30:07 2012 +0000
Commit:     Zac Medico <zmedico <AT> gentoo <DOT> org>
CommitDate: Fri Dec 28 06:30:07 2012 +0000
URL:        http://git.overlays.gentoo.org/gitweb/?p=proj/portage.git;a=commit;h=df7f1d3e

PipeReaderBlockingIO handle threading ImportError

---
 .../tests/process/test_PopenProcessBlockingIO.py   |    1 +
 pym/portage/util/_async/PipeReaderBlockingIO.py    |    6 +++++-
 2 files changed, 6 insertions(+), 1 deletions(-)

diff --git a/pym/portage/tests/process/test_PopenProcessBlockingIO.py b/pym/portage/tests/process/test_PopenProcessBlockingIO.py
index 9cdad32..9ee291a 100644
--- a/pym/portage/tests/process/test_PopenProcessBlockingIO.py
+++ b/pym/portage/tests/process/test_PopenProcessBlockingIO.py
@@ -6,6 +6,7 @@ import subprocess
 try:
 	import threading
 except ImportError:
+	# dummy_threading will not suffice
 	threading = None
 
 from portage import os

diff --git a/pym/portage/util/_async/PipeReaderBlockingIO.py b/pym/portage/util/_async/PipeReaderBlockingIO.py
index 8ce2ec5..b06adf6 100644
--- a/pym/portage/util/_async/PipeReaderBlockingIO.py
+++ b/pym/portage/util/_async/PipeReaderBlockingIO.py
@@ -1,7 +1,11 @@
 # Copyright 2012 Gentoo Foundation
 # Distributed under the terms of the GNU General Public License v2
 
-import threading
+try:
+	import threading
+except ImportError:
+	# dummy_threading will not suffice
+	threading = None
 
 from portage import os
 from _emerge.AbstractPollTask import AbstractPollTask


             reply	other threads:[~2012-12-28  6:30 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-12-28  6:30 Zac Medico [this message]
  -- strict thread matches above, loose matches on Subject: below --
2013-01-07  9:16 [gentoo-commits] proj/portage:master commit in: pym/portage/tests/process/, pym/portage/util/_async/ Zac Medico

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1356676207.df7f1d3e00a9f0de1c631422b91cac3d074ddc0f.zmedico@gentoo \
    --to=zmedico@gentoo.org \
    --cc=gentoo-commits@lists.gentoo.org \
    --cc=gentoo-dev@lists.gentoo.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox