[systemd-devel] [PATCH] analyze: work around bug in Python 3 Cairo bindings

shawn shawnlandden at gmail.com
Mon Jul 9 23:43:20 PDT 2012


I've looked into this issue a bit more

don't commit inaccurate commit messages

>From 5fb21257ad39ba81c1db6e402b9bbf91d5bbb640 Mon Sep 17 00:00:00 2001
From: Shawn Landden <shawnlandden at gmail.com>
Date: Tue, 10 Jul 2012 03:57:18 +0000
Subject: [PATCH] analyze: work around bug in Python 3 Cairo bindings

Python 3 Cairo bindings have not been update
to work with the new IO system, therefore
sys.stdout and sys.stderr do not work.

Work around this by using /dev/stdout.

http://bugs.freedesktop.org/show_bug.cgi?id=50989
---
src/analyze/systemd-analyze |    2 +-
1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/analyze/systemd-analyze b/src/analyze/systemd-analyze
index 76eceee..240d541 100755
--- a/src/analyze/systemd-analyze
+++ b/src/analyze/systemd-analyze
@@ -150,7 +150,7 @@ def plot():
         if width < 1000:
                 width = 1000

-        surface = cairo.SVGSurface(sys.stdout, width, height)
+        surface = cairo.SVGSurface("/dev/stdout", width, height)
         context = cairo.Context(surface)

         draw_box(context, 0, 0, width, height, 1, 1, 1)
-- 
1.7.10.4




More information about the systemd-devel mailing list