Loading libsparse/Android.bp +3 −3 Original line number Original line Diff line number Diff line Loading @@ -85,11 +85,11 @@ python_binary_host { srcs: ["simg_dump.py"], srcs: ["simg_dump.py"], version: { version: { py2: { py2: { embedded_launcher: true, enabled: false, enabled: true, }, }, py3: { py3: { enabled: false, embedded_launcher: true, enabled: true, }, }, }, }, } } Loading libsparse/simg_dump.py +2 −3 Original line number Original line Diff line number Diff line #! /usr/bin/env python #! /usr/bin/env python3 # Copyright (C) 2012 The Android Open Source Project # Copyright (C) 2012 The Android Open Source Project # # Loading @@ -14,7 +14,6 @@ # See the License for the specific language governing permissions and # See the License for the specific language governing permissions and # limitations under the License. # limitations under the License. from __future__ import print_function import csv import csv import getopt import getopt import hashlib import hashlib Loading Loading @@ -47,7 +46,7 @@ def main(): opts, args = getopt.getopt(sys.argv[1:], opts, args = getopt.getopt(sys.argv[1:], "vsc:", "vsc:", ["verbose", "showhash", "csvfile"]) ["verbose", "showhash", "csvfile"]) except getopt.GetoptError, e: except getopt.GetoptError as e: print(e) print(e) usage(me) usage(me) for o, a in opts: for o, a in opts: Loading Loading
libsparse/Android.bp +3 −3 Original line number Original line Diff line number Diff line Loading @@ -85,11 +85,11 @@ python_binary_host { srcs: ["simg_dump.py"], srcs: ["simg_dump.py"], version: { version: { py2: { py2: { embedded_launcher: true, enabled: false, enabled: true, }, }, py3: { py3: { enabled: false, embedded_launcher: true, enabled: true, }, }, }, }, } } Loading
libsparse/simg_dump.py +2 −3 Original line number Original line Diff line number Diff line #! /usr/bin/env python #! /usr/bin/env python3 # Copyright (C) 2012 The Android Open Source Project # Copyright (C) 2012 The Android Open Source Project # # Loading @@ -14,7 +14,6 @@ # See the License for the specific language governing permissions and # See the License for the specific language governing permissions and # limitations under the License. # limitations under the License. from __future__ import print_function import csv import csv import getopt import getopt import hashlib import hashlib Loading Loading @@ -47,7 +46,7 @@ def main(): opts, args = getopt.getopt(sys.argv[1:], opts, args = getopt.getopt(sys.argv[1:], "vsc:", "vsc:", ["verbose", "showhash", "csvfile"]) ["verbose", "showhash", "csvfile"]) except getopt.GetoptError, e: except getopt.GetoptError as e: print(e) print(e) usage(me) usage(me) for o, a in opts: for o, a in opts: Loading