Advertisement
Guest User

Untitled

a guest
Mar 9th, 2013
26
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.06 KB | None | 0 0
  1. utdd.py
  2.  
  3. line 40
  4. - if (sys.argv[1] == "-h") or (sys.argv[1] == "--help")
  5. + if sys.argv[1] in ["-h", "--help"]:
  6.  
  7. Line 60
  8. - if (sys.argv[1] != "mako") or (sys.argv[1] != "grouper") or (sys.argv[1] != "maguro") or (sys.argv[1] != "manta"):
  9. + if not sys.argv[1] in ["mako", "grouper", "maguro", "manta"]:
  10.  
  11. The tabs should be 4 spaces lines like 137 to 155 tabs are excessive, but that is a quibble. Same quibble for dlprogress.py
  12.  
  13. If it was a more complex script and the code matbe translated to other languages then the you should use unicode string.
  14. Example:
  15. rootfs = "quantal-preinstalled-phablet-armhf.zip"
  16. androbase = "quantal-preinstalled-armel+%s.zip" % (device)
  17.  
  18. changed to:
  19.  
  20. rootfs = u"quantal-preinstalled-phablet-armhf.zip"
  21. androbase = u"quantal-preinstalled-armel+%s.zip" % device
  22.  
  23. OR
  24.  
  25. print("Downloads are finished! Now make sure your device is connected with USB Debugging activated.")
  26. to
  27. 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