Move the import of optionparse to the testing section

This commit is contained in:
jkeating@localhost.localdomain 2006-10-10 21:20:59 -04:00 committed by Jesse Keating
parent 90de6d97a5
commit f04c99fcbe

View File

@ -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]