projects
/
youtube-dl
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
dd109de
)
Better formatting (PEP 8)
author
Philipp Hagemeister
<phihag@phihag.de>
Tue, 27 Nov 2012 18:03:37 +0000
(19:03 +0100)
committer
Philipp Hagemeister
<phihag@phihag.de>
Tue, 27 Nov 2012 18:03:37 +0000
(19:03 +0100)
youtube_dl/__init__.py
patch
|
blob
|
history
diff --git
a/youtube_dl/__init__.py
b/youtube_dl/__init__.py
index 75ae7e83872e817de2efa962d5f0d06b769b63af..4fed20d54b26bf0de666ca09873fa2cc28093992 100644
(file)
--- a/
youtube_dl/__init__.py
+++ b/
youtube_dl/__init__.py
@@
-127,9
+127,12
@@
def parseOpts():
opts = []
- if option._short_opts: opts.append(option._short_opts[0])
- if option._long_opts: opts.append(option._long_opts[0])
- if len(opts) > 1: opts.insert(1, ', ')
+ if option._short_opts:
+ opts.append(option._short_opts[0])
+ if option._long_opts:
+ opts.append(option._long_opts[0])
+ if len(opts) > 1:
+ opts.insert(1, ', ')
if option.takes_value(): opts.append(' %s' % option.metavar)