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>
pull/1/head
Benjamin Tissoires 2018-01-12 20:16:31 +01:00
parent d20e2b70ad
commit af42bc1b27
1 changed files with 7 additions and 6 deletions

View File

@ -52,6 +52,7 @@ INTF_MANAGER = 'org.freedesktop.tuhi1.Manager'
INTF_DEVICE = 'org.freedesktop.tuhi1.Device'
JSON_FILE_FORMAT_VERSION = 1
class TuhiDrawing(object):
class TuhiDrawingStroke(object):
def __init__(self):
@ -72,10 +73,10 @@ class TuhiDrawing(object):
def json(self):
json_data = {
'version': JSON_FILE_FORMAT_VERSION,
'devicename': self.device.name,
'dimensions' : [self.device.width, self.device.height],
'strokes': [s.to_dict for s in self.strokes]
'version': JSON_FILE_FORMAT_VERSION,
'devicename': self.device.name,
'dimensions': [self.device.width, self.device.height],
'strokes': [s.to_dict for s in self.strokes]
}
return json.dumps(json_data)
@ -152,8 +153,8 @@ class TuhiDBusServer(GObject.Object):
Class for the DBus server.
"""
__gsignals__ = {
"bus-name-owned":
(GObject.SIGNAL_RUN_FIRST, None, ()),
"bus-name-owned":
(GObject.SIGNAL_RUN_FIRST, None, ()),
}
def __init__(self, tuhi):