diff options
Diffstat (limited to 'pym/portage/process.py')
-rw-r--r-- | pym/portage/process.py | 3 |
1 files changed, 3 insertions, 0 deletions
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()) \ |