浏览代码

Attempt to fix #1914

Ask Solem 11 年之前
父节点
当前提交
2ee33e6a9d
共有 1 个文件被更改,包括 5 次插入3 次删除
  1. 5 3
      celery/utils/debug.py

+ 5 - 3
celery/utils/debug.py

@@ -6,7 +6,7 @@
     Utilities for debugging memory usage.
 
 """
-from __future__ import absolute_import, print_function
+from __future__ import absolute_import, print_function, unicode_literals
 
 import os
 
@@ -41,8 +41,10 @@ _mem_sample = []
 def _on_blocking(signum, frame):
     import inspect
     raise RuntimeError(
-        'Blocking detection timed-out at: %s' % (
-            inspect.getframeinfo(frame), ))
+        'Blocking detection timed-out at: {0}'.format(
+            inspect.getframeinfo(frame)
+        )
+    )
 
 
 @contextmanager