Unlink OptionParser so that we don't need to run the cycle collector
authorBenjamin Smedberg <benjamin@smedbergs.us>
Wed, 01 Apr 2009 13:46:24 -0400
changeset 246 9cbc577ac665
parent 245 88471ac94e0e
child 247 6f0a67f8b732
push id140
push userbsmedberg@mozilla.com
push date2009-04-01 20:02 +0000
Unlink OptionParser so that we don't need to run the cycle collector
pymake/command.py
--- a/pymake/command.py
+++ b/pymake/command.py
@@ -177,16 +177,18 @@ def main(args, env, cwd, cb):
         op.add_option('-w', '--print-directory', action="store_true",
                       dest="printdir")
         op.add_option('--no-print-directory', action="store_false",
                       dest="printdir", default=True)
 
         options, arguments1 = op.parse_args(parsemakeflags(env))
         options, arguments2 = op.parse_args(args, values=options)
 
+        op.destroy()
+
         arguments = arguments1 + arguments2
 
         if options.printversion:
             _version()
             cb(0)
             return
 
         shortflags = []