python 2.5 compatibility

This commit is contained in:
Dane Springmeyer 2011-12-13 17:02:00 -08:00
parent 7a3dbfdad7
commit 5f84df96d4

View file

@ -12,7 +12,7 @@ def usage():
def main(): def main():
try: try:
opts, args = getopt.getopt(sys.argv[1:], "hvqp:", ["help", "prefix="]) opts, args = getopt.getopt(sys.argv[1:], "hvqp:", ["help", "prefix="])
except getopt.GetoptError as err: except getopt.GetoptError,err:
print(str(err)) print(str(err))
usage() usage()
sys.exit(2) sys.exit(2)