has_key is deprecated, converting uses to use "in" operator.

This commit is contained in:
Nathan Yergler
2011-10-01 15:10:41 -07:00
parent 243c3843bd
commit 285ffeddf3
8 changed files with 23 additions and 23 deletions

View File

@@ -61,7 +61,7 @@ def main_cli():
subparsers = parser.add_subparsers(help='sub-command help')
for command_name, command_struct in SUBCOMMAND_MAP.iteritems():
if command_struct.has_key('help'):
if 'help' in command_struct:
subparser = subparsers.add_parser(
command_name, help=command_struct['help'])
else: