From f04c99fcbe430bd0bb3766664181a36d98998c9d Mon Sep 17 00:00:00 2001 From: "jkeating@localhost.localdomain" <> Date: Tue, 10 Oct 2006 21:20:59 -0400 Subject: [PATCH] Move the import of optionparse to the testing section --- gather/gather.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gather/gather.py b/gather/gather.py index 310d2ee3..5b066509 100755 --- a/gather/gather.py +++ b/gather/gather.py @@ -15,7 +15,6 @@ import sys import yum -from optparse import OptionParser def create_yumobj(yumconf): # Create a yum object to act upon @@ -38,6 +37,7 @@ def main(): sys.exit(1) if __name__ == '__main__': + from optparse import OptionParser def get_arguments(): # hack job for now, I'm sure this could be better for our uses usage = "usage: %s [options]" % sys.argv[0]