diff options
| author | Philipp Hagemeister <phihag@phihag.de> | 2012-11-27 19:03:37 +0100 | 
|---|---|---|
| committer | Philipp Hagemeister <phihag@phihag.de> | 2012-11-27 19:03:37 +0100 | 
| commit | 3aeb78ea4e5808e30a4f9b7d8496473ad842d7ac (patch) | |
| tree | aeb9fdbd231b8c710834dcd1f277c90b28fc38bf | |
| parent | dd109dee8ebd51a019529fa494e56651162ad6d9 (diff) | |
Better formatting (PEP 8)
| -rw-r--r-- | youtube_dl/__init__.py | 9 | 
1 files changed, 6 insertions, 3 deletions
| diff --git a/youtube_dl/__init__.py b/youtube_dl/__init__.py index 75ae7e838..4fed20d54 100644 --- 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) | 
