From c581522b4fcac9edae8e494e213c654612ad4490 Mon Sep 17 00:00:00 2001 From: Arfrever Frehtes Taifersar Arahesis Date: Mon, 21 Sep 2009 12:44:37 +0000 Subject: Define basestring as str when Python 3 is used. svn path=/main/trunk/; revision=14316 --- pym/portage/process.py | 3 +++ 1 file changed, 3 insertions(+) (limited to 'pym/portage/process.py') diff --git a/pym/portage/process.py b/pym/portage/process.py index 2329e6a1b..d24b6f28a 100644 --- a/pym/portage/process.py +++ b/pym/portage/process.py @@ -26,6 +26,9 @@ try: except ImportError: max_fd_limit = 256 +if sys.hexversion >= 0x3000000: + basestring = str + if os.path.isdir("/proc/%i/fd" % os.getpid()): def get_open_fds(): return (int(fd) for fd in os.listdir("/proc/%i/fd" % os.getpid()) \ -- cgit v1.2.3-1-g7c22