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
1 changed files with 1 additions and 1 deletions

View File

@ -15,7 +15,6 @@
import sys import sys
import yum import yum
from optparse import OptionParser
def create_yumobj(yumconf): def create_yumobj(yumconf):
# Create a yum object to act upon # Create a yum object to act upon
@ -38,6 +37,7 @@ def main():
sys.exit(1) sys.exit(1)
if __name__ == '__main__': if __name__ == '__main__':
from optparse import OptionParser
def get_arguments(): def get_arguments():
# hack job for now, I'm sure this could be better for our uses # hack job for now, I'm sure this could be better for our uses
usage = "usage: %s [options]" % sys.argv[0] usage = "usage: %s [options]" % sys.argv[0]