python 2.5 compatibility
This commit is contained in:
parent
7a3dbfdad7
commit
5f84df96d4
1 changed files with 1 additions and 1 deletions
|
@ -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)
|
||||||
|
|
Loading…
Reference in a new issue