From 108d009334f4a4076413c66fc1f2c83fdcc0d005 Mon Sep 17 00:00:00 2001 From: Steven Myint Date: Fri, 4 Oct 2013 14:20:51 -0700 Subject: Use "items()" instead of "iteritems()" --- examples/rippy.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'examples') diff --git a/examples/rippy.py b/examples/rippy.py index 4984e35..4e8ed3d 100755 --- a/examples/rippy.py +++ b/examples/rippy.py @@ -276,7 +276,7 @@ def convert (options): if options['video_target_size'] != 'none': revised_bitrate = calculate_revised_bitrate (options['video_bitrate'], options['video_target_size'], video_actual_size) o.append("# revised video_bitrate : %d\n" % revised_bitrate) - for k,v in options.iteritems(): + for k,v in options.items(): o.append (" %30s : %s\n" % (k, v)) print('# '.join(o)) fout = open("rippy.conf","wb").write(''.join(o)) @@ -838,7 +838,7 @@ def interactive_convert (): print("Ready to Rippy!") print() print("The following options will be used:") - for k,v in options.iteritems(): + for k,v in options.items(): print("%27s : %s" % (k, v)) print() -- cgit v1.2.1