From f2779197b13fdbbd0d42e48215c51d24d86ee91b Mon Sep 17 00:00:00 2001 From: Diego Roversi Date: Thu, 12 Sep 2019 21:33:58 +0200 Subject: 2to3 of display module --- display/dpy_x.py | 11 +++++------ 1 file changed, 5 insertions(+), 6 deletions(-) (limited to 'display/dpy_x.py') diff --git a/display/dpy_x.py b/display/dpy_x.py index ffca90f..6b8f4bb 100644 --- a/display/dpy_x.py +++ b/display/dpy_x.py @@ -1,7 +1,7 @@ import sys -import xshm -from modes import BaseDisplay -from cStringIO import StringIO +from . import xshm +from .modes import BaseDisplay +from io import StringIO class Display(BaseDisplay): @@ -20,9 +20,8 @@ class Display(BaseDisplay): self.mouseevents = xdpy.mouseevents self.pointermotion = xdpy.pointermotion if use_shm and not xdpy.shmmode(): - print >> sys.stderr, \ - "Note: cannot use SHM extension (%dx%d), display will be slow." % \ - (width, height) + print("Note: cannot use SHM extension (%dx%d), display will be slow." % \ + (width, height), file=sys.stderr) def selectlist(self): if hasattr(self.xdpy, 'fd'): -- cgit v1.2.3