]> git.bitcoin.ninja Git - youtube-dl/blobdiff - youtube_dl/__init__.py
Replace long with int (see PEP 237)
[youtube-dl] / youtube_dl / __init__.py
index 75ae7e83872e817de2efa962d5f0d06b769b63af..54c7d7f72ed82051ad738f2039c9017ae9d58ad9 100644 (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)
 
@@ -446,7 +449,7 @@ def _real_main():
                opts.ratelimit = numeric_limit
        if opts.retries is not None:
                try:
-                       opts.retries = long(opts.retries)
+                       opts.retries = int(opts.retries)
                except (TypeError, ValueError), err:
                        parser.error(u'invalid retry count specified')
        if opts.buffersize is not None: