338
338
g = dict(option.Option.OPTIONS.items())
344
343
if not isinstance(option_or_name, basestring):
345
344
self.assertIsInstance(option_or_name, option.Option)
346
345
elif not option_or_name in g:
347
346
msgs.append("apparent reference to undefined "
348
347
"global option %r from %r"
351
350
used_globals.setdefault(option_or_name, []).append(cmd_name)
352
351
unused_globals = set(g.keys()) - set(used_globals.keys())