Use store_const instead of append_const as the latter requires Python 2.5
authorRicardo Garcia <sarbalap+freshmeat@gmail.com>
Wed, 13 May 2009 20:08:34 +0000 (22:08 +0200)
committerRicardo Garcia <sarbalap+freshmeat@gmail.com>
Sun, 31 Oct 2010 10:24:16 +0000 (11:24 +0100)
youtube-dl

index db9510f7be78ab3ec7e18f57b1ea39dc74a3643e..b2dc7952d9c3a0a1c7ed41bde7be98d3e887f3a2 100755 (executable)
@@ -1022,11 +1022,11 @@ if __name__ == '__main__':
                video_format.add_option('-f', '--format',
                                action='append', dest='format', metavar='FMT', help='video format code')
                video_format.add_option('-b', '--best-quality',
-                               action='append_const', dest='format', help='download the best quality video possible', const='0')
+                               action='store_const', dest='format', help='download the best quality video possible', const='0')
                video_format.add_option('-m', '--mobile-version',
-                               action='append_const', dest='format', help='alias for -f 17', const='17')
+                               action='store_const', dest='format', help='alias for -f 17', const='17')
                video_format.add_option('-d', '--high-def',
-                               action='append_const', dest='format', help='alias for -f 22', const='22')
+                               action='store_const', dest='format', help='alias for -f 22', const='22')
                parser.add_option_group(video_format)
 
                verbosity = optparse.OptionGroup(parser, 'Verbosity / Simulation Options')