mirror of
https://gitlab.freedesktop.org/monado/monado.git
synced 2025-01-29 18:08:29 +00:00
ipc: Make script more pythonic
This commit is contained in:
parent
ff3a4d8b50
commit
cef1970340
|
@ -38,11 +38,10 @@ class Arg:
|
|||
"""Construct an argument."""
|
||||
self.name = data['name']
|
||||
self.typename = data['type']
|
||||
self.is_aggregate = False
|
||||
if self.typename.find("struct ") == 0:
|
||||
self.is_aggregate = True
|
||||
if self.typename.find("union ") == 0:
|
||||
self.is_aggregate = True
|
||||
self.is_aggregate = (
|
||||
self.typename.startswith("struct ")
|
||||
or
|
||||
self.typename.startswith("union "))
|
||||
|
||||
|
||||
def write_with_wrapped_args(f, start, args, indent):
|
||||
|
|
Loading…
Reference in a new issue