Skip to content

Commit

Permalink
fix pylint warnings
Browse files Browse the repository at this point in the history
git-svn-id: https://xpra.org/svn/Xpra/trunk@21872 3bb7dfac-3a0b-4e04-842a-767bc560f471
  • Loading branch information
totaam committed Feb 25, 2019
1 parent 7875aa8 commit c180b3f
Showing 1 changed file with 8 additions and 7 deletions.
15 changes: 8 additions & 7 deletions src/xpra/client/gl/gl_window_backing_base.py
Original file line number Diff line number Diff line change
Expand Up @@ -303,7 +303,9 @@ def init_formats(self):
else:
self.texture_pixel_format = GL_RGB
log("init_formats() texture pixel format=%s, internal format=%s, rgb modes=%s",
CONSTANT_TO_PIXEL_FORMAT.get(self.texture_pixel_format), INTERNAL_FORMAT_TO_STR.get(self.internal_format), self.RGB_MODES)
CONSTANT_TO_PIXEL_FORMAT.get(self.texture_pixel_format),
INTERNAL_FORMAT_TO_STR.get(self.internal_format),
self.RGB_MODES)

def get_encoding_properties(self):
props = WindowBackingBase.get_encoding_properties(self)
Expand All @@ -328,10 +330,7 @@ def gl_marker(self, *msg):
log(*msg)
if not bool(glStringMarkerGREMEDY):
return
try:
s = "%s" % msg
except:
s = str(msg)
s = str(msg)
c_string = c_char_p(s)
glStringMarkerGREMEDY(0, c_string)

Expand Down Expand Up @@ -552,10 +551,12 @@ def fail(msg):
if h<=0:
continue #nothing left!
if x+xdelta<0:
fail("horizontal scroll by %i: rectangle %s overflows the backing buffer size %s" % (xdelta, (x, y, w, h), self.size))
fail("horizontal scroll by %i:" % xdelta
+" rectangle %s overflows the backing buffer size %s" % ((x, y, w, h), self.size))
continue
if y+ydelta<0:
fail("vertical scroll by %i: rectangle %s overflows the backing buffer size %s" % (ydelta, (x, y, w, h), self.size))
fail("vertical scroll by %i:" % ydelta
+" rectangle %s overflows the backing buffer size %s" % ((x, y, w, h), self.size))
continue
#opengl buffer is upside down, so we must invert Y coordinates: bh-(..)
glBlitFramebuffer(x, bh-y, x+w, bh-(y+h),
Expand Down

0 comments on commit c180b3f

Please sign in to comment.