summaryrefslogtreecommitdiffstats
path: root/bin/bitbake
diff options
context:
space:
mode:
authorChris Larson <chris_larson@mentor.com>2010-04-15 08:14:53 -0700
committerChris Larson <chris_larson@mentor.com>2010-04-15 08:15:45 -0700
commit8f4b7b10f8740a41c085beeca5105f15204b0979 (patch)
treeb6291cc05937b6839d03083933f0dd94d85b3302 /bin/bitbake
parent6c89c332664a7789d02a701e7e530838ab778264 (diff)
downloadbitbake-contrib-8f4b7b10f8740a41c085beeca5105f15204b0979.tar.gz
Drop an unnecessary second python version check and use the less ugly sys.version_info
Signed-off-by: Chris Larson <chris_larson@mentor.com>
Diffstat (limited to 'bin/bitbake')
-rwxr-xr-xbin/bitbake8
1 files changed, 2 insertions, 6 deletions
diff --git a/bin/bitbake b/bin/bitbake
index 564c16ed7..6edf4b732 100755
--- a/bin/bitbake
+++ b/bin/bitbake
@@ -23,8 +23,8 @@
# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
import sys
-if sys.hexversion < 0x020600F0:
- print "Sorry, python 2.6 or later is required for this version of bitbake"
+if sys.version_info < (2, 6, 0):
+ print "Sorry, python 2.6.0 or later is required for this version of bitbake"
sys.exit(1)
import os
@@ -92,10 +92,6 @@ warnings.simplefilter("ignore", DeprecationWarning)
def main():
return_value = 0
- pythonver = sys.version_info
- if pythonver[0] < 2 or (pythonver[0] == 2 and pythonver[1] < 5):
- print "Sorry, bitbake needs python 2.5 or later."
- sys.exit(1)
parser = optparse.OptionParser(
version = "BitBake Build Tool Core version %s, %%prog version %s" % (bb.__version__, __version__),