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():
try:
opts, args = getopt.getopt(sys.argv[1:], "hvqp:", ["help", "prefix="])
except getopt.GetoptError as err:
except getopt.GetoptError,err:
print(str(err))
usage()
sys.exit(2)