pep8 fixes, modernizations
autopep8 -a -r -i --select E711,E712,W601,W602,W603,W604,W690,E304,E401,E502 . Also includes some manual reindentations (many are left after the print() changes). Manually checked, some modernizations not commited here.
This commit is contained in:
parent
e2ac8687c6
commit
6161a0aacd
18 changed files with 57 additions and 51 deletions
|
|
@ -2,9 +2,9 @@
|
|||
# -*- coding: utf-8 -*-
|
||||
from __future__ import print_function
|
||||
|
||||
import os
|
||||
import subprocess
|
||||
import sys
|
||||
import os
|
||||
|
||||
if '--deps' in sys.argv:
|
||||
sys.argv.remove('--deps')
|
||||
|
|
@ -25,8 +25,8 @@ if len(sys.argv) < 2:
|
|||
print("To install all the missing dependencies, add the option --deps")
|
||||
print("at the end of the command line.")
|
||||
print()
|
||||
print("Error: Please provide a destination, " \
|
||||
"for example ‘%s/bin’" % os.getenv('HOME'), file=sys.stderr)
|
||||
print("Error: Please provide a destination, "
|
||||
"for example ‘%s/bin’" % os.getenv('HOME'), file=sys.stderr)
|
||||
sys.exit(1)
|
||||
else:
|
||||
dest = os.path.expanduser(sys.argv[1])
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue