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