소스 검색

Fix syntax error on Python 2.4

Mike Naberezny 9 년 전
부모
커밋
28b98975cf
1개의 변경된 파일5개의 추가작업 그리고 1개의 파일을 삭제
  1. 5 1
      supervisor/web.py

+ 5 - 1
supervisor/web.py

@@ -187,7 +187,11 @@ class TailView(MeldView):
             processname = form['processname']
             offset = 0
             limit = form.get('limit', '1024')
-            limit = min(-1024, int(limit)*-1 if limit.isdigit() else -1024)
+            if limit.isdigit():
+                limit = min(-1024, int(limit) * -1)
+            else:
+                limit = -1024
+
             if not processname:
                 tail = 'No process name found'
             else: