python3: More python3 compat updates

More python3 compability updates.

Change-Id: Id784f0d6075f6bf821e2e46898f3bcaa7ade8e3d
Signed-off-by: Chuck Short <chuck.short@canonical.com>
This commit is contained in:
Chuck Short 2013-06-07 09:14:19 -05:00
parent 13bcb0fa6c
commit 56f78ff3b9

View File

@ -267,6 +267,7 @@ import functools
import glob
import itertools
import os
import six
import string
import sys
@ -1438,7 +1439,7 @@ class _CachedArgumentParser(argparse.ArgumentParser):
self._args_cache[container] = values
def initialize_parser_arguments(self):
for container, values in self._args_cache.iteritems():
for container, values in six.iteritems(self._args_cache):
values.sort(key=lambda x: x['args'])
for argument in values:
try: