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