Merge "libsparse: python3."

This commit is contained in:
Treehugger Robot 2021-08-18 00:06:36 +00:00 committed by Gerrit Code Review
commit 2201ccfebe
2 changed files with 5 additions and 6 deletions

View file

@ -85,11 +85,11 @@ python_binary_host {
srcs: ["simg_dump.py"],
version: {
py2: {
embedded_launcher: true,
enabled: true,
enabled: false,
},
py3: {
enabled: false,
embedded_launcher: true,
enabled: true,
},
},
}

View file

@ -1,4 +1,4 @@
#! /usr/bin/env python
#! /usr/bin/env python3
# Copyright (C) 2012 The Android Open Source Project
#
@ -14,7 +14,6 @@
# See the License for the specific language governing permissions and
# limitations under the License.
from __future__ import print_function
import csv
import getopt
import hashlib
@ -47,7 +46,7 @@ def main():
opts, args = getopt.getopt(sys.argv[1:],
"vsc:",
["verbose", "showhash", "csvfile"])
except getopt.GetoptError, e:
except getopt.GetoptError as e:
print(e)
usage(me)
for o, a in opts: