Browse Source

Better formatting (PEP 8)

rtmp_test
Philipp Hagemeister 12 years ago
parent
commit
3aeb78ea4e
1 changed files with 6 additions and 3 deletions
  1. +6
    -3
      youtube_dl/__init__.py

+ 6
- 3
youtube_dl/__init__.py View File

@ -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)


Loading…
Cancel
Save