diff options
author | Diego Roversi <diegor@tiscali.it> | 2019-09-12 21:33:58 +0200 |
---|---|---|
committer | Diego Roversi <diegor@tiscali.it> | 2019-09-12 21:33:58 +0200 |
commit | f2779197b13fdbbd0d42e48215c51d24d86ee91b (patch) | |
tree | 968267aa9909470c27b43109029e87d1f126b4e7 /display/dpy_x.py | |
parent | bc2155a93cd15c975881d7ca8f57f0f4b5c4aa27 (diff) |
2to3 of display module
Diffstat (limited to 'display/dpy_x.py')
-rw-r--r-- | display/dpy_x.py | 11 |
1 files changed, 5 insertions, 6 deletions
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'): |