瀏覽代碼

Fix syntax error on Python 2.5

Mike Naberezny 9 年之前
父節點
當前提交
7a3b073a23
共有 1 個文件被更改,包括 1 次插入1 次删除
  1. 1 1
      supervisor/options.py

+ 1 - 1
supervisor/options.py

@@ -255,7 +255,7 @@ class Options:
         try:
         try:
             self.options, self.args = getopt.getopt(
             self.options, self.args = getopt.getopt(
                 args, "".join(self.short_options), self.long_options)
                 args, "".join(self.short_options), self.long_options)
-        except getopt.error as exc:
+        except getopt.error, exc:
             self.usage(repr(exc))
             self.usage(repr(exc))
 
 
         # Check for positional args
         # Check for positional args