bump releasetools python requirement to 2.7
These scripts already use some post-2.4 features, so let's make it official: Python 2.7 is needed to run them. Change-Id: I256e9ed99b0b62abe4e22a7b1f811acb7419e88e
This commit is contained in:
parent
0158f8f71c
commit
cf6d5a9074
5 changed files with 10 additions and 10 deletions
|
@ -41,8 +41,8 @@ Usage: check_target_file_signatures [flags] target_files
|
||||||
|
|
||||||
import sys
|
import sys
|
||||||
|
|
||||||
if sys.hexversion < 0x02040000:
|
if sys.hexversion < 0x02070000:
|
||||||
print >> sys.stderr, "Python 2.4 or newer is required."
|
print >> sys.stderr, "Python 2.7 or newer is required."
|
||||||
sys.exit(1)
|
sys.exit(1)
|
||||||
|
|
||||||
import os
|
import os
|
||||||
|
|
|
@ -31,8 +31,8 @@ Usage: img_from_target_files [flags] input_target_files output_image_zip
|
||||||
|
|
||||||
import sys
|
import sys
|
||||||
|
|
||||||
if sys.hexversion < 0x02040000:
|
if sys.hexversion < 0x02070000:
|
||||||
print >> sys.stderr, "Python 2.4 or newer is required."
|
print >> sys.stderr, "Python 2.7 or newer is required."
|
||||||
sys.exit(1)
|
sys.exit(1)
|
||||||
|
|
||||||
import errno
|
import errno
|
||||||
|
|
|
@ -16,8 +16,8 @@
|
||||||
|
|
||||||
import sys
|
import sys
|
||||||
|
|
||||||
if sys.hexversion < 0x02040000:
|
if sys.hexversion < 0x02070000:
|
||||||
print >> sys.stderr, "Python 2.4 or newer is required."
|
print >> sys.stderr, "Python 2.7 or newer is required."
|
||||||
sys.exit(1)
|
sys.exit(1)
|
||||||
|
|
||||||
import os
|
import os
|
||||||
|
|
|
@ -61,8 +61,8 @@ Usage: ota_from_target_files [flags] input_target_files output_ota_package
|
||||||
|
|
||||||
import sys
|
import sys
|
||||||
|
|
||||||
if sys.hexversion < 0x02040000:
|
if sys.hexversion < 0x02070000:
|
||||||
print >> sys.stderr, "Python 2.4 or newer is required."
|
print >> sys.stderr, "Python 2.7 or newer is required."
|
||||||
sys.exit(1)
|
sys.exit(1)
|
||||||
|
|
||||||
import copy
|
import copy
|
||||||
|
|
|
@ -67,8 +67,8 @@ Usage: sign_target_files_apks [flags] input_target_files output_target_files
|
||||||
|
|
||||||
import sys
|
import sys
|
||||||
|
|
||||||
if sys.hexversion < 0x02040000:
|
if sys.hexversion < 0x02070000:
|
||||||
print >> sys.stderr, "Python 2.4 or newer is required."
|
print >> sys.stderr, "Python 2.7 or newer is required."
|
||||||
sys.exit(1)
|
sys.exit(1)
|
||||||
|
|
||||||
import base64
|
import base64
|
||||||
|
|
Loading…
Reference in a new issue