dbusserver.py: fix flake8 warnings
./tuhi/dbusserver.py:55:1: E302 expected 2 blank lines, found 1 ./tuhi/dbusserver.py:75:17: E126 continuation line over-indented for hanging indent ./tuhi/dbusserver.py:77:29: E203 whitespace before ':' ./tuhi/dbusserver.py:155:13: E126 continuation line over-indented for hanging indent ./tuhi/dbusserver.py:156:17: E131 continuation line unaligned for hanging indent Signed-off-by: Benjamin Tissoires <benjamin.tissoires@gmail.com>
This commit is contained in:
parent
d20e2b70ad
commit
af42bc1b27
|
@ -52,6 +52,7 @@ INTF_MANAGER = 'org.freedesktop.tuhi1.Manager'
|
||||||
INTF_DEVICE = 'org.freedesktop.tuhi1.Device'
|
INTF_DEVICE = 'org.freedesktop.tuhi1.Device'
|
||||||
JSON_FILE_FORMAT_VERSION = 1
|
JSON_FILE_FORMAT_VERSION = 1
|
||||||
|
|
||||||
|
|
||||||
class TuhiDrawing(object):
|
class TuhiDrawing(object):
|
||||||
class TuhiDrawingStroke(object):
|
class TuhiDrawingStroke(object):
|
||||||
def __init__(self):
|
def __init__(self):
|
||||||
|
@ -72,10 +73,10 @@ class TuhiDrawing(object):
|
||||||
|
|
||||||
def json(self):
|
def json(self):
|
||||||
json_data = {
|
json_data = {
|
||||||
'version': JSON_FILE_FORMAT_VERSION,
|
'version': JSON_FILE_FORMAT_VERSION,
|
||||||
'devicename': self.device.name,
|
'devicename': self.device.name,
|
||||||
'dimensions' : [self.device.width, self.device.height],
|
'dimensions': [self.device.width, self.device.height],
|
||||||
'strokes': [s.to_dict for s in self.strokes]
|
'strokes': [s.to_dict for s in self.strokes]
|
||||||
}
|
}
|
||||||
return json.dumps(json_data)
|
return json.dumps(json_data)
|
||||||
|
|
||||||
|
@ -152,8 +153,8 @@ class TuhiDBusServer(GObject.Object):
|
||||||
Class for the DBus server.
|
Class for the DBus server.
|
||||||
"""
|
"""
|
||||||
__gsignals__ = {
|
__gsignals__ = {
|
||||||
"bus-name-owned":
|
"bus-name-owned":
|
||||||
(GObject.SIGNAL_RUN_FIRST, None, ()),
|
(GObject.SIGNAL_RUN_FIRST, None, ()),
|
||||||
}
|
}
|
||||||
|
|
||||||
def __init__(self, tuhi):
|
def __init__(self, tuhi):
|
||||||
|
|
Loading…
Reference in New Issue