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'
|
||||
JSON_FILE_FORMAT_VERSION = 1
|
||||
|
||||
|
||||
class TuhiDrawing(object):
|
||||
class TuhiDrawingStroke(object):
|
||||
def __init__(self):
|
||||
|
@ -74,7 +75,7 @@ class TuhiDrawing(object):
|
|||
json_data = {
|
||||
'version': JSON_FILE_FORMAT_VERSION,
|
||||
'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]
|
||||
}
|
||||
return json.dumps(json_data)
|
||||
|
|
Loading…
Reference in New Issue