Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- utdd.py
- line 40
- - if (sys.argv[1] == "-h") or (sys.argv[1] == "--help")
- + if sys.argv[1] in ["-h", "--help"]:
- Line 60
- - if (sys.argv[1] != "mako") or (sys.argv[1] != "grouper") or (sys.argv[1] != "maguro") or (sys.argv[1] != "manta"):
- + if not sys.argv[1] in ["mako", "grouper", "maguro", "manta"]:
- The tabs should be 4 spaces lines like 137 to 155 tabs are excessive, but that is a quibble. Same quibble for dlprogress.py
- If it was a more complex script and the code matbe translated to other languages then the you should use unicode string.
- Example:
- rootfs = "quantal-preinstalled-phablet-armhf.zip"
- androbase = "quantal-preinstalled-armel+%s.zip" % (device)
- changed to:
- rootfs = u"quantal-preinstalled-phablet-armhf.zip"
- androbase = u"quantal-preinstalled-armel+%s.zip" % device
- OR
- print("Downloads are finished! Now make sure your device is connected with USB Debugging activated.")
- to
- print(u"Downloads are finished! Now make sure your device is connected with USB Debugging activated.")
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement