summaryrefslogtreecommitdiffstats
path: root/bitbake/lib/bb/utils.py
diff options
context:
space:
mode:
authorRichard Purdie <richard.purdie@linuxfoundation.org>2013-06-14 16:22:51 +0000
committerRichard Purdie <richard.purdie@linuxfoundation.org>2013-06-14 17:26:30 +0100
commit441c699acbb4b443c705933c1fccee0d906a1262 (patch)
tree63816b0140acf3052a1b673ecd8d2400f3a528b3 /bitbake/lib/bb/utils.py
parent6c058341f9b0bee6af2554d897a2623a2ea9a479 (diff)
downloadpoky-441c699acbb4b443c705933c1fccee0d906a1262.tar.gz
bitbake: compat/server/utils: Jettison pre python 2.7.3 workarounds
Now we've moved to require python 2.7.3, we can jettison the compatibility workarounds/hacks for older python versions. (Bitbake rev: a51c402304f2080a76720f9b31d6dfdbed393bba) Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'bitbake/lib/bb/utils.py')
-rw-r--r--bitbake/lib/bb/utils.py7
1 files changed, 2 insertions, 5 deletions
diff --git a/bitbake/lib/bb/utils.py b/bitbake/lib/bb/utils.py
index 7db6e3862f..5301ebaa97 100644
--- a/bitbake/lib/bb/utils.py
+++ b/bitbake/lib/bb/utils.py
@@ -860,11 +860,8 @@ def process_profilelog(fn):
860 pout.close() 860 pout.close()
861 861
862# 862#
863# Work around multiprocessing pool bugs in python < 2.7.3 863# Was present to work around multiprocessing pool bugs in python < 2.7.3
864# 864#
865def multiprocessingpool(*args, **kwargs): 865def multiprocessingpool(*args, **kwargs):
866 if sys.version_info < (2, 7, 3): 866 return multiprocessing.pool.Pool(*args, **kwargs)
867 return bb.compat.Pool(*args, **kwargs)
868 else:
869 return multiprocessing.pool.Pool(*args, **kwargs)
870 867