libsparse: python3.
Test: treehugger Test: ran simg_dump.py on a file created by img2simg Change-Id: I999747867733a2e789c0da95add0bba83c36133f
This commit is contained in:
parent
489f09abd4
commit
726a6a9159
2 changed files with 5 additions and 6 deletions
|
@ -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,
|
||||
},
|
||||
},
|
||||
}
|
||||
|
|
|
@ -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:
|
||||
|
|
Loading…
Reference in a new issue