소스 검색

Removed use of sorted() for compatibility with Python 2.3.

Mike Naberezny 15 년 전
부모
커밋
67cf16cc0b
1개의 변경된 파일3개의 추가작업 그리고 1개의 파일을 삭제
  1. 3 1
      src/supervisor/supervisorctl.py

+ 3 - 1
src/supervisor/supervisorctl.py

@@ -807,7 +807,9 @@ class DefaultControllerPlugin(ControllerPluginBase):
             changedict.update(dict(zip(n, [t] * len(n))))
 
         if changedict:
-            for name in sorted(changedict):
+            names = changedict.keys()
+            names.sort()
+            for name in names:
                 self.ctl.output("%s: %s" % (name, changedict[name]))
         else:
             self.ctl.output("No config updates to processes")